summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/ui/crumbs/runningbuild.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py
index d4ba4b7476..9730bfd472 100644
--- a/bitbake/lib/bb/ui/crumbs/runningbuild.py
+++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py
@@ -48,7 +48,7 @@ class RunningBuild (gobject.GObject):
48 gobject.GObject.__init__ (self) 48 gobject.GObject.__init__ (self)
49 self.model = RunningBuildModel() 49 self.model = RunningBuildModel()
50 50
51 def handle_event (self, event): 51 def handle_event (self, event, pbar=None):
52 # Handle an event from the event queue, this may result in updating 52 # Handle an event from the event queue, this may result in updating
53 # the model and thus the UI. Or it may be to tell us that the build 53 # the model and thus the UI. Or it may be to tell us that the build
54 # has finished successfully (or not, as the case may be.) 54 # has finished successfully (or not, as the case may be.)
@@ -162,6 +162,14 @@ class RunningBuild (gobject.GObject):
162 else: 162 else:
163 self.emit ("build-succeeded") 163 self.emit ("build-succeeded")
164 164
165 elif isinstance(event, bb.event.ParseProgress) and pbar:
166 x = event.sofar
167 y = event.total
168 if x == y:
169 pbar.hide()
170 return
171 pbar.update(x, y)
172
165class RunningBuildTreeView (gtk.TreeView): 173class RunningBuildTreeView (gtk.TreeView):
166 def __init__ (self): 174 def __init__ (self):
167 gtk.TreeView.__init__ (self) 175 gtk.TreeView.__init__ (self)