bitbake: cooker: Fix parse progress for python3
Under python the type conversions can mean there are float values used for triggering the parse progress events which then fails. Add an explict int() conversion to ensure the parse events are generated under python3. (Bitbake rev: 138329c58e92744c56aae3ab70ceeef09613250c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e73a85be3e
commit
2192a48a5d
|
@ -2020,7 +2020,7 @@ class CookerParser(object):
|
|||
else:
|
||||
self.fromcache.append((filename, appends))
|
||||
self.toparse = self.total - len(self.fromcache)
|
||||
self.progress_chunk = max(self.toparse / 100, 1)
|
||||
self.progress_chunk = int(max(self.toparse / 100, 1))
|
||||
|
||||
self.num_processes = min(int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS", True) or
|
||||
multiprocessing.cpu_count()), len(self.willparse))
|
||||
|
|
Loading…
Reference in New Issue