From: Jason Wessel Date: Mon, 17 Sep 2012 22:43:48 +0000 (-0500) Subject: bitbake: progress.py: Fix traceback when running goggle ui X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eab93b0d625aba061a73b9c5f7ce7828495f1338;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/ui/crumbs/progress.py b/bitbake/lib/bb/ui/crumbs/progress.py index 0c7ad963b50..1d28a111b3b 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))