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

login
register
mail settings
Submitter Jason Wessel
Date Sept. 17, 2012, 10:43 p.m.
Message ID <1347921831-60604-2-git-send-email-jason.wessel@windriver.com>
Download mbox | patch
Permalink /patch/36675/
State Accepted
Commit a6cc53cdb3c34fc8fd01bbc5ce0008429dc6785c
Headers show

Comments

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

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))