summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-03-01 14:57:36 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-01 15:51:36 +0000
commitdb4a1999437a4b76fa2cae4fcaadb67471bc828e (patch)
treea41771db68f9fefc7793829a0d91006c2683cdd4 /bitbake/lib/bb/ui
parent8078553d7be408af9327eafc3d5e68108fad08de (diff)
downloadpoky-db4a1999437a4b76fa2cae4fcaadb67471bc828e.tar.gz
bitbake/uihelper: restore line to record failed normal tasks
Save failed real (non-setscene) tasks to uihelper's failed task list. as before commit e8a3499c95a6d4f2b8fed002fb9504733c5be3c6. Currently this list is only used by the ncurses UI. (Bitbake rev: cc74cad0742ea0d4e09e843883cdc55bad39b22e) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r--bitbake/lib/bb/ui/uihelper.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/uihelper.py b/bitbake/lib/bb/ui/uihelper.py
index 4116dabf94..03fac593bd 100644
--- a/bitbake/lib/bb/ui/uihelper.py
+++ b/bitbake/lib/bb/ui/uihelper.py
@@ -32,8 +32,13 @@ class BBUIHelper:
32 if isinstance(event, bb.build.TaskSucceeded): 32 if isinstance(event, bb.build.TaskSucceeded):
33 del self.running_tasks[event.pid] 33 del self.running_tasks[event.pid]
34 self.needUpdate = True 34 self.needUpdate = True
35 if isinstance(event, bb.build.TaskFailed) or isinstance(event, bb.build.TaskFailedSilent): 35 if isinstance(event, bb.build.TaskFailedSilent):
36 del self.running_tasks[event.pid] 36 del self.running_tasks[event.pid]
37 # Don't add to the failed tasks list since this is e.g. a setscene task failure
38 self.needUpdate = True
39 if isinstance(event, bb.build.TaskFailed):
40 del self.running_tasks[event.pid]
41 self.failed_tasks.append( { 'title' : "%s %s" % (event._package, event._task)})
37 self.needUpdate = True 42 self.needUpdate = True
38 43
39 def getTasks(self): 44 def getTasks(self):