diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-03-01 14:57:36 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-01 15:26:05 +0000 |
commit | cc74cad0742ea0d4e09e843883cdc55bad39b22e (patch) | |
tree | 4fc2f4e8d7d48146fc5a687bc4c6b37eb728e78d /lib | |
parent | 8b846a92a58b5c20d7cfd2efd32b763e95c3c2fd (diff) | |
download | bitbake-cc74cad0742ea0d4e09e843883cdc55bad39b22e.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.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/ui/uihelper.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/bb/ui/uihelper.py b/lib/bb/ui/uihelper.py index 4116dabf9..03fac593b 100644 --- a/lib/bb/ui/uihelper.py +++ b/lib/bb/ui/uihelper.py @@ -32,8 +32,13 @@ class BBUIHelper: if isinstance(event, bb.build.TaskSucceeded): del self.running_tasks[event.pid] self.needUpdate = True - if isinstance(event, bb.build.TaskFailed) or isinstance(event, bb.build.TaskFailedSilent): + if isinstance(event, bb.build.TaskFailedSilent): del self.running_tasks[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.failed_tasks.append( { 'title' : "%s %s" % (event._package, event._task)}) self.needUpdate = True def getTasks(self): |