summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-07-15 20:54:30 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-19 08:56:50 +0100
commitbc3a206de379de5d79af2a08b9b8ff56ae06e68d (patch)
tree3e2fe38f38c104030540ea2d27173c43f1d919e3 /bitbake
parent2afcbfef2cd1ca568e5225884a8021df38ee3db0 (diff)
downloadpoky-bc3a206de379de5d79af2a08b9b8ff56ae06e68d.tar.gz
bitbake: knotty: avoid errors when fetching outside of a task
In a few places we use the fetcher code to fetch files outside of a task, for example uninative in OE. In that case the pid of the event is 0 and that was causing an error in BBUIHelper.eventHandler(). Check the pid and do nothing if it's 0. (Bitbake rev: 59cb919e5cd5c653fb4d69b2d6a4320648443e10) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/uihelper.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/uihelper.py b/bitbake/lib/bb/ui/uihelper.py
index 1915e47703..f64fa18ec2 100644
--- a/bitbake/lib/bb/ui/uihelper.py
+++ b/bitbake/lib/bb/ui/uihelper.py
@@ -54,9 +54,10 @@ class BBUIHelper:
54 self.tasknumber_total = event.stats.total 54 self.tasknumber_total = event.stats.total
55 self.needUpdate = True 55 self.needUpdate = True
56 if isinstance(event, bb.build.TaskProgress): 56 if isinstance(event, bb.build.TaskProgress):
57 self.running_tasks[event.pid]['progress'] = event.progress 57 if event.pid > 0:
58 self.running_tasks[event.pid]['rate'] = event.rate 58 self.running_tasks[event.pid]['progress'] = event.progress
59 self.needUpdate = True 59 self.running_tasks[event.pid]['rate'] = event.rate
60 self.needUpdate = True
60 61
61 def getTasks(self): 62 def getTasks(self):
62 self.needUpdate = False 63 self.needUpdate = False