Skip to contentSkip to conversation

runningbuild.py: fix goggle ui

PATCH In review Eric Bénard 2 participants 2 messages Mar 21, 2012 – Mar 22, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 runningbuild.py: fix goggle ui

without this fix I get the following error once the build is finished :
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 287, in handle_event
pbar.set_text(event.msg)
AttributeError: 'ProgressBar' object has no attribute 'set_text'

---
 lib/bb/ui/crumbs/runningbuild.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/bb/ui/crumbs/runningbuild.py +1 -1
index 4c3fe2c..343eac9 100644
@@ -284,7 +284,7 @@ class RunningBuild (gobject.GObject):
             # handle when the build is finished
             self.emit("build-complete")
             if pbar:
-                pbar.set_text(event.msg)
+                pbar.set_title(event.msg)
 
         elif isinstance(event, bb.command.CommandFailed):
             if event.error.startswith("Exited with"):
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 9 lines · Eric Bénard

without this fix I get the following error once the build is finished :
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 287, in handle_event
pbar.set_text(event.msg)
AttributeError: 'ProgressBar' object has no attribute 'set_text'

Quoted 17 lines
---
  lib/bb/ui/crumbs/runningbuild.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
lib/bb/ui/crumbs/runningbuild.py +1 -1
index 4c3fe2c..343eac9 100644
@@ -284,7 +284,7 @@ class RunningBuild (gobject.GObject):
              # handle when the build is finished
              self.emit("build-complete")
              if pbar:
-                pbar.set_text(event.msg)
+                pbar.set_title(event.msg)
 
          elif isinstance(event, bb.command.CommandFailed):
              if event.error.startswith("Exited with"):
Signature · 3 lines
Joshua '贾詡' Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre