From c4e07bc0338a3c51cc811c7c837daf9b93772e5f Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 30 Nov 2010 13:57:36 -0700 Subject: cooker: don't choke on <100 recipes to parse (Bitbake rev: 2be5169a01e57bcfcb1f75cbd6bac3bf0f230edd) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index e7fdb5a69..ccbecc448 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -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) -- cgit v1.2.3