All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bb/ui/uihelper.py: Ensure task current and total numbers are updated for setscene events too
@ 2012-08-15 15:59 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-08-15 15:59 UTC (permalink / raw)
  To: bitbake-devel

This avoids task (0 of 0) type messages being displayed during setscene by knotty2.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/ui/uihelper.py b/bitbake/lib/bb/ui/uihelper.py
index 2c78695..e408b04 100644
--- a/bitbake/lib/bb/ui/uihelper.py
+++ b/bitbake/lib/bb/ui/uihelper.py
@@ -48,7 +48,7 @@ class BBUIHelper:
             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):
+        if isinstance(event, bb.runqueue.runQueueTaskStarted) or isinstance(event, bb.runqueue.sceneQueueTaskStarted):
             self.tasknumber_current = event.stats.completed + event.stats.active + event.stats.failed + 1
             self.tasknumber_total = event.stats.total
 





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-15 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-15 15:59 [PATCH] bb/ui/uihelper.py: Ensure task current and total numbers are updated for setscene events too Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.