summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-30 13:57:36 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:45 +0000
commitc4e07bc0338a3c51cc811c7c837daf9b93772e5f (patch)
tree943f5aada0a7fb7b26f7d0649451b933ce35f715 /bitbake/lib/bb/cooker.py
parentb8aedaa6b54eb81739c288b59a11e1df9f182ec5 (diff)
downloadpoky-c4e07bc0338a3c51cc811c7c837daf9b93772e5f.tar.gz
cooker: don't choke on <100 recipes to parse
(Bitbake rev: 2be5169a01e57bcfcb1f75cbd6bac3bf0f230edd) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index e7fdb5a692..ccbecc4482 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1012,7 +1012,7 @@ class CookerParser(object):
1012 else: 1012 else:
1013 self.fromcache.append((filename, appends)) 1013 self.fromcache.append((filename, appends))
1014 self.toparse = self.total - len(self.fromcache) 1014 self.toparse = self.total - len(self.fromcache)
1015 self.progress_chunk = self.toparse / 100 1015 self.progress_chunk = max(self.toparse, self.toparse / 100)
1016 1016
1017 def worker(input, output, cfgdata): 1017 def worker(input, output, cfgdata):
1018 signal.signal(signal.SIGINT, signal.SIG_IGN) 1018 signal.signal(signal.SIGINT, signal.SIG_IGN)