summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/crumbs
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-05-10 17:07:56 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-16 20:47:31 +0100
commit2bc8f405ec552ae0f1a79790569b2d044a35d3ba (patch)
tree0610429e1bc2b92197801f0ab082edf9e72b650b /lib/bb/ui/crumbs
parentabecbb4c0af83c6b4ee248b0f03b779f84b13390 (diff)
downloadbitbake-2bc8f405ec552ae0f1a79790569b2d044a35d3ba.tar.gz
bitbake/ui: Fix Gtk+ GUI's after recent cache changes
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'lib/bb/ui/crumbs')
-rw-r--r--lib/bb/ui/crumbs/hobeventhandler.py2
-rw-r--r--lib/bb/ui/crumbs/runningbuild.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index 3efc02538..a84a925f8 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/lib/bb/ui/crumbs/hobeventhandler.py
@@ -103,6 +103,8 @@ class HobHandler(gobject.GObject):
elif isinstance(event, bb.event.CacheLoadCompleted) and pbar:
pbar.update(bb.ui.crumbs.hobeventhandler.progress_total, bb.ui.crumbs.hobeventhandler.progress_total)
elif isinstance(event, bb.event.ParseStarted) and pbar:
+ if event.total == 0:
+ return
pbar.set_title("Processing recipes")
bb.ui.crumbs.hobeventhandler.progress_total = event.total
pbar.update(0, bb.ui.crumbs.hobeventhandler.progress_total)
diff --git a/lib/bb/ui/crumbs/runningbuild.py b/lib/bb/ui/crumbs/runningbuild.py
index 4703e6d84..70fd57eff 100644
--- a/lib/bb/ui/crumbs/runningbuild.py
+++ b/lib/bb/ui/crumbs/runningbuild.py
@@ -234,6 +234,8 @@ class RunningBuild (gobject.GObject):
pbar.update(self.progress_total, self.progress_total)
elif isinstance(event, bb.event.ParseStarted) and pbar:
+ if event.total == 0:
+ return
pbar.set_title("Processing recipes")
self.progress_total = event.total
pbar.update(0, self.progress_total)
@@ -308,4 +310,4 @@ class RunningBuildTreeView (gtk.TreeView):
clipboard = gtk.clipboard_get()
clipboard.set_text(paste_url)
- clipboard.store() \ No newline at end of file
+ clipboard.store()