summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2012-09-17 17:43:48 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-24 15:35:31 +0100
commiteab93b0d625aba061a73b9c5f7ce7828495f1338 (patch)
tree415fe67ac7eaa788a7304533d1589df3cad04abf
parenteed98e4666cafa139900f9a84c0be8665c89b04b (diff)
downloadpoky-eab93b0d625aba061a73b9c5f7ce7828495f1338.tar.gz
poky-eab93b0d625aba061a73b9c5f7ce7828495f1338.tar.bz2
poky-eab93b0d625aba061a73b9c5f7ce7828495f1338.zip
bitbake: progress.py: Fix traceback when running goggle ui
The following traceback appears when running the following command after the devshell is exited. bitbake -u goggle -c devshell busybox -- traceback -- Traceback (most recent call last): File "/work/bitbake/lib/bb/ui/goggle.py", line 35, in event_handle_idle_func build.handle_event (event, pbar) File "/work/bitbake/lib/bb/ui/crumbs/runningbuild.py", line 299, in handle_event pbar.set_text(event.msg) AttributeError: 'ProgressBar' object has no attribute 'set_text' (Bitbake rev: a6cc53cdb3c34fc8fd01bbc5ce0008429dc6785c) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/crumbs/progress.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/progress.py b/bitbake/lib/bb/ui/crumbs/progress.py
index 0c7ad963b5..1d28a111b3 100644
--- a/bitbake/lib/bb/ui/crumbs/progress.py
+++ b/bitbake/lib/bb/ui/crumbs/progress.py
@@ -11,6 +11,9 @@ class ProgressBar(gtk.Dialog):
self.vbox.pack_start(self.progress)
self.show_all()
+ def set_text(self, msg):
+ self.progress.set_text(msg)
+
def update(self, x, y):
self.progress.set_fraction(float(x)/float(y))
self.progress.set_text("%2d %%" % (x*100/y))