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>
This commit is contained in:
parent
b8aedaa6b5
commit
c4e07bc033
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue