[oe-commits] [bitbake] branch master updated: cooker: Fix parse progress for python3
git at git.openembedded.org
git at git.openembedded.org
Sat May 21 11:17:53 UTC 2016
rpurdie pushed a commit to branch master
in repository bitbake.
The following commit(s) were added to refs/heads/master by this push:
new 138329c cooker: Fix parse progress for python3
138329c is described below
commit 138329c58e92744c56aae3ab70ceeef09613250c
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri May 20 12:48:02 2016 +0100
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.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/cooker.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 44aa11e..fb86446 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -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))
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list