diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-15 16:59:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-16 11:19:02 +0100 |
commit | e2d023ff5fbf6c11e7edeb1d5f27d9c6fb307cc5 (patch) | |
tree | 9d577f6eab81e8b33f243338138ec2419da8dffa | |
parent | 4c4f714612d133dc51808ee5fe4b3ddc3d0681fa (diff) | |
download | poky-e2d023ff5fbf6c11e7edeb1d5f27d9c6fb307cc5.tar.gz |
bitbake: bb/ui/uihelper.py: Ensure task current and total numbers are updated for setscene events too
This avoids task (0 of 0) type messages being displayed during setscene by knotty2.
(Bitbake rev: 53efa01720a61da2cb344cbb7e977baa28deba3b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/ui/uihelper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/uihelper.py b/bitbake/lib/bb/ui/uihelper.py index 2c78695377..e408b04910 100644 --- a/bitbake/lib/bb/ui/uihelper.py +++ b/bitbake/lib/bb/ui/uihelper.py | |||
@@ -48,7 +48,7 @@ class BBUIHelper: | |||
48 | self.running_pids.remove(event.pid) | 48 | self.running_pids.remove(event.pid) |
49 | self.failed_tasks.append( { 'title' : "%s %s" % (event._package, event._task)}) | 49 | self.failed_tasks.append( { 'title' : "%s %s" % (event._package, event._task)}) |
50 | self.needUpdate = True | 50 | self.needUpdate = True |
51 | if isinstance(event, bb.runqueue.runQueueTaskStarted): | 51 | if isinstance(event, bb.runqueue.runQueueTaskStarted) or isinstance(event, bb.runqueue.sceneQueueTaskStarted): |
52 | self.tasknumber_current = event.stats.completed + event.stats.active + event.stats.failed + 1 | 52 | self.tasknumber_current = event.stats.completed + event.stats.active + event.stats.failed + 1 |
53 | self.tasknumber_total = event.stats.total | 53 | self.tasknumber_total = event.stats.total |
54 | 54 | ||