Skip to contentSkip to conversation

runningbuild.py: fix goggle ui

PATCH Applied Eric Bénard 2 participants 2 messages Mar 19, 2012 – Mar 20, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 runningbuild.py: fix goggle ui

* goggle ui actually fails with :
Traceback (most recent call last):
File ".../bitbake/lib/bb/ui/goggle.py", line 35, in event_handle_idle_func
build.handle_event (event, pbar)
File ".../bitbake/lib/bb/ui/crumbs/runningbuild.py", line 234, in handle_event
pbar.update(0, None, bb.event.getName(event))
TypeError: update() takes exactly 3 arguments (4 given)

---
 lib/bb/ui/crumbs/runningbuild.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
lib/bb/ui/crumbs/runningbuild.py +2 -2
index 718f692..10ca394 100644
@@ -231,8 +231,8 @@ class RunningBuild (gobject.GObject):
                                       HobColors.OK,
                                       0))
             if pbar:
-                pbar.update(0, None, bb.event.getName(event))
-                pbar.set_title()
+                pbar.update(0, self.progress_total)
+                pbar.set_title(bb.event.getName(event))
 
         elif isinstance(event, bb.event.BuildCompleted):
             failures = int (event._failures)
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 9 lines · Eric Bénard

* goggle ui actually fails with :
Traceback (most recent call last):
File ".../bitbake/lib/bb/ui/goggle.py", line 35, in event_handle_idle_func
build.handle_event (event, pbar)
File ".../bitbake/lib/bb/ui/crumbs/runningbuild.py", line 234, in handle_event
pbar.update(0, None, bb.event.getName(event))
TypeError: update() takes exactly 3 arguments (4 given)

Merged to master, thanks.

Richard