]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerChris Larson <chris_larson@mentor.com>
Tue, 30 Nov 2010 20:57:36 +0000 (13:57 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/bb/cooker.py

index 92f22fc62a2f01d3ae4263332d22b73b352b0a44..1de37aef9a23805ba3c13949fceed079142c0ebc 100644 (file)
@@ -977,7 +977,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)