summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-30 13:57:36 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:45 +0000
commitc4e07bc0338a3c51cc811c7c837daf9b93772e5f (patch)
tree943f5aada0a7fb7b26f7d0649451b933ce35f715
parentb8aedaa6b54eb81739c288b59a11e1df9f182ec5 (diff)
downloadopenembedded-core-c4e07bc0338a3c51cc811c7c837daf9b93772e5f.tar.gz
openembedded-core-c4e07bc0338a3c51cc811c7c837daf9b93772e5f.tar.bz2
openembedded-core-c4e07bc0338a3c51cc811c7c837daf9b93772e5f.tar.xz
openembedded-core-c4e07bc0338a3c51cc811c7c837daf9b93772e5f.zip
cooker: don't choke on <100 recipes to parse
(Bitbake rev: 2be5169a01e57bcfcb1f75cbd6bac3bf0f230edd) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index e7fdb5a69..ccbecc448 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1012,7 +1012,7 @@ class CookerParser(object):
else:
self.fromcache.append((filename, appends))
self.toparse = self.total - len(self.fromcache)
- self.progress_chunk = self.toparse / 100
+ self.progress_chunk = max(self.toparse, self.toparse / 100)
def worker(input, output, cfgdata):
signal.signal(signal.SIGINT, signal.SIG_IGN)