summaryrefslogtreecommitdiffstats
path: root/bitbake
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 /bitbake
parenteed98e4666cafa139900f9a84c0be8665c89b04b (diff)
downloadpoky-eab93b0d625aba061a73b9c5f7ce7828495f1338.tar.gz
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>
Diffstat (limited to 'bitbake')
-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):
11 self.vbox.pack_start(self.progress) 11 self.vbox.pack_start(self.progress)
12 self.show_all() 12 self.show_all()
13 13
14 def set_text(self, msg):
15 self.progress.set_text(msg)
16
14 def update(self, x, y): 17 def update(self, x, y):
15 self.progress.set_fraction(float(x)/float(y)) 18 self.progress.set_fraction(float(x)/float(y))
16 self.progress.set_text("%2d %%" % (x*100/y)) 19 self.progress.set_text("%2d %%" % (x*100/y))