summaryrefslogtreecommitdiffstats
path: root/lib
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:26:44 +0100
commita6cc53cdb3c34fc8fd01bbc5ce0008429dc6785c (patch)
treeb0b7e94d92febde916ff204d7b8ced39c82128bb /lib
parent440e479f3e248482c38c149643403c6907ac7034 (diff)
downloadbitbake-a6cc53cdb3c34fc8fd01bbc5ce0008429dc6785c.tar.gz
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' Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/ui/crumbs/progress.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/ui/crumbs/progress.py b/lib/bb/ui/crumbs/progress.py
index 0c7ad963b..1d28a111b 100644
--- a/lib/bb/ui/crumbs/progress.py
+++ b/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))