summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-29 19:38:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-29 19:43:04 +0100
commit5b84c902ebbd0b034c6f328eb44054e2f92556d3 (patch)
tree1794c131ced8d34cf714e2573d32b23ad8ed20f2
parent3774cf0fdc0d61532f10112b3cf3bc65f4084b53 (diff)
downloadast2050-yocto-poky-5b84c902ebbd0b034c6f328eb44054e2f92556d3.zip
ast2050-yocto-poky-5b84c902ebbd0b034c6f328eb44054e2f92556d3.tar.gz
uihelper: Keep track of pids in execution order
(Bitbake rev: cec2f3eaa45a6fd8d3c53c09aaf010ac6101e7ba) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/uihelper.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/uihelper.py b/bitbake/lib/bb/ui/uihelper.py
index c96f381..2c78695 100644
--- a/bitbake/lib/bb/ui/uihelper.py
+++ b/bitbake/lib/bb/ui/uihelper.py
@@ -23,6 +23,8 @@ class BBUIHelper:
def __init__(self):
self.needUpdate = False
self.running_tasks = {}
+ # Running PIDs preserves the order tasks were executed in
+ self.running_pids = []
self.failed_tasks = []
self.tasknumber_current = 0
self.tasknumber_total = 0
@@ -30,16 +32,20 @@ class BBUIHelper:
def eventHandler(self, event):
if isinstance(event, bb.build.TaskStarted):
self.running_tasks[event.pid] = { 'title' : "%s %s" % (event._package, event._task) }
+ self.running_pids.append(event.pid)
self.needUpdate = True
if isinstance(event, bb.build.TaskSucceeded):
del self.running_tasks[event.pid]
+ self.running_pids.remove(event.pid)
self.needUpdate = True
if isinstance(event, bb.build.TaskFailedSilent):
del self.running_tasks[event.pid]
+ self.running_pids.remove(event.pid)
# Don't add to the failed tasks list since this is e.g. a setscene task failure
self.needUpdate = True
if isinstance(event, bb.build.TaskFailed):
del self.running_tasks[event.pid]
+ self.running_pids.remove(event.pid)
self.failed_tasks.append( { 'title' : "%s %s" % (event._package, event._task)})
self.needUpdate = True
if isinstance(event, bb.runqueue.runQueueTaskStarted):
OpenPOWER on IntegriCloud