aboutsummaryrefslogtreecommitdiffstats
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)
downloadopenembedded-core-contrib-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:
self.tasknumber_total = event.stats.total
self.needUpdate = True
if isinstance(event, bb.build.TaskProgress):
- self.running_tasks[event.pid]['progress'] = event.progress
- self.running_tasks[event.pid]['rate'] = event.rate
- self.needUpdate = True
+ if event.pid > 0:
+ self.running_tasks[event.pid]['progress'] = event.progress
+ self.running_tasks[event.pid]['rate'] = event.rate
+ self.needUpdate = True
def getTasks(self):
self.needUpdate = False