summaryrefslogtreecommitdiffstats
path: root/lib/bb
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-11-11 10:14:11 +0000
committerChris Larson <chris_larson@mentor.com>2010-12-08 20:06:13 -0700
commit38f59ad6dbfdc51577927ccc133903fa965c51a3 (patch)
tree461f2ab5b755e8917daef8ae58c34ac3049fd5cc /lib/bb
parent9d7dac26f24327022b410f178feaca8ac1f0eaf5 (diff)
downloadbitbake-contrib-38f59ad6dbfdc51577927ccc133903fa965c51a3.tar.gz
bitbake/crumbs: do the test for ignored messages sooner
Move the test for ignored messages to the start of the message handling loop to avoid doing work for messages which are only going to be ignored. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'lib/bb')
-rw-r--r--lib/bb/ui/crumbs/runningbuild.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/bb/ui/crumbs/runningbuild.py b/lib/bb/ui/crumbs/runningbuild.py
index 6f77b83c6..711697cec 100644
--- a/lib/bb/ui/crumbs/runningbuild.py
+++ b/lib/bb/ui/crumbs/runningbuild.py
@@ -68,6 +68,9 @@ class RunningBuild (gobject.GObject):
parent = self.tasks_to_iter[(package, task)]
if isinstance(event, bb.msg.MsgBase):
+ # Ignore the "Running task i of n .."
+ if (event._message.startswith ("Running task")):
+ return # don't add these to the list
# Set a pretty icon for the message based on it's type.
if isinstance(event, bb.msg.MsgWarn):
@@ -77,10 +80,6 @@ class RunningBuild (gobject.GObject):
else:
icon = None
- # Ignore the "Running task i of n .." messages
- if (event._message.startswith ("Running task")):
- return
-
# Add the message to the tree either at the top level if parent is
# None otherwise as a descendent of a task.
self.model.append (parent,