[bitbake-devel,1/4] progress.py: Fix traceback when running goggle ui

Submitted by Jason Wessel on Sept. 17, 2012, 10:43 p.m.

Details

Message ID 1347921831-60604-2-git-send-email-jason.wessel@windriver.com
State Accepted
Commit a6cc53cdb3c34fc8fd01bbc5ce0008429dc6785c
Headers show

Commit Message

Jason Wessel Sept. 17, 2012, 10:43 p.m.
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>
---
 lib/bb/ui/crumbs/progress.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/lib/bb/ui/crumbs/progress.py b/lib/bb/ui/crumbs/progress.py
index 0c7ad96..1d28a11 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))