From patchwork Thu Mar 1 14:57:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 2/3] bitbake/uihelper: restore line to record failed normal tasks Date: Thu, 01 Mar 2012 14:57:36 -0000 From: Paul Eggleton X-Patchwork-Id: 22539 Message-Id: <1b89555e3d22c80cf09753d4618f3014e28fe072.1330613733.git.paul.eggleton@linux.intel.com> To: bitbake-devel@lists.openembedded.org 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 --- bitbake/lib/bb/ui/uihelper.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/bitbake/lib/bb/ui/uihelper.py b/bitbake/lib/bb/ui/uihelper.py index 4116dab..03fac59 100644 --- a/bitbake/lib/bb/ui/uihelper.py +++ b/bitbake/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):