]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Fix the <100 recipe progress fix
authorChris Larson <chris_larson@mentor.com>
Fri, 3 Dec 2010 17:39:11 +0000 (12:39 -0500)
committerChris Larson <chris_larson@mentor.com>
Fri, 3 Dec 2010 17:39:11 +0000 (12:39 -0500)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/bb/cooker.py

index 1de37aef9a23805ba3c13949fceed079142c0ebc..4ca32bc75f525b1351551cfaaa4fb34faa480697 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 = max(self.toparse, self.toparse / 100)
+        self.progress_chunk = max(self.toparse / 100, 1)
 
         def worker(input, output, cfgdata):
             signal.signal(signal.SIGINT, signal.SIG_IGN)