]> code.ossystems Code Review - openembedded-core.git/commitdiff
cooker: don't choke on <100 recipes to parse
authorChris Larson <chris_larson@mentor.com>
Tue, 30 Nov 2010 20:57:36 +0000 (13:57 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:45 +0000 (14:46 +0000)
(Bitbake rev: 2be5169a01e57bcfcb1f75cbd6bac3bf0f230edd)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/cooker.py

index e7fdb5a692b90e7c0cc50c42ce104fbcd0e4b43d..ccbecc448244c6805401efa8c794fc32dcdd3b32 100644 (file)
@@ -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)