]> code.ossystems Code Review - openembedded-core.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)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:46 +0000 (14:46 +0000)
(Bitbake rev: 424428a764651183218f9cc93bc05496867aa5de)

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

index ccbecc448244c6805401efa8c794fc32dcdd3b32..18a22de71193267ec6c695b70e8bec3030911cd2 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 = 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)