summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-20 12:48:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-21 12:15:45 +0100
commit2192a48a5dc2f2e9c16d6b03ddd578333763c355 (patch)
tree47df63b60a3a3c634ef0797944611fc93b5705b4 /bitbake
parente73a85be3e020561db92a197c593afe7fd952919 (diff)
downloadpoky-2192a48a5dc2f2e9c16d6b03ddd578333763c355.tar.gz
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>
Diffstat (limited to 'bitbake')
-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 44aa11e531..fb86446d47 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -2020,7 +2020,7 @@ class CookerParser(object):
2020 else: 2020 else:
2021 self.fromcache.append((filename, appends)) 2021 self.fromcache.append((filename, appends))
2022 self.toparse = self.total - len(self.fromcache) 2022 self.toparse = self.total - len(self.fromcache)
2023 self.progress_chunk = max(self.toparse / 100, 1) 2023 self.progress_chunk = int(max(self.toparse / 100, 1))
2024 2024
2025 self.num_processes = min(int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS", True) or 2025 self.num_processes = min(int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS", True) or
2026 multiprocessing.cpu_count()), len(self.willparse)) 2026 multiprocessing.cpu_count()), len(self.willparse))