From: Chris Larson Date: Tue, 30 Nov 2010 20:57:36 +0000 (-0700) Subject: cooker: don't choke on <100 recipes to parse X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2be5169a01e57bcfcb1f75cbd6bac3bf0f230edd;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cooker: don't choke on <100 recipes to parse Signed-off-by: Chris Larson --- diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 92f22fc62a2..1de37aef9a2 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -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)