]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake/ui: Fix Gtk+ GUI's after recent cache changes
authorJoshua Lock <josh@linux.intel.com>
Wed, 11 May 2011 00:07:56 +0000 (17:07 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 May 2011 19:47:31 +0000 (20:47 +0100)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
lib/bb/ui/crumbs/hobeventhandler.py
lib/bb/ui/crumbs/runningbuild.py
lib/bb/ui/depexp.py

index 3efc02538371087a788aed782dee42a1127b055a..a84a925f8bd7bc891e23004e2e9f8cce2d2d72aa 100644 (file)
@@ -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)
index 4703e6d844da08bf48389ea81b9d5944f86d76d6..70fd57effcd962b601dcb817e28052615b5a6c6f 100644 (file)
@@ -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()
index 485e02a584f0f6bd6a458c7333014efb2782f7f3..a0737ee0b5ad023c86feccd543ac8a36f67f28a1 100644 (file)
@@ -259,6 +259,8 @@ def main(server, eventHandler):
 
             if isinstance(event, bb.event.ParseStarted):
                 progress_total = event.total
+                if progress_total == 0:
+                    continue
                 gtk.gdk.threads_enter()
                 pbar.set_title("Processing recipes")
                 pbar.update(0, progress_total)