Skip to contentSkip to conversation

hob: stop build without percentage shown

PATCH Applied Andrei Dinu 2 participants 2 messages Oct 12, 2012 – Oct 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hob: stop build without percentage shown

added a method in progressbar.py that doesn't update the percentage in the progress bar shown in hob.

the call of the method is done in builder.py.

---
 bitbake/lib/bb/ui/crumbs/builder.py     |    2 +-
 bitbake/lib/bb/ui/crumbs/progressbar.py |    5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
bitbake/lib/bb/ui/crumbs/builder.py +1 -1
index 6ddc5b6..2a41657 100755
@@ -1480,7 +1480,7 @@ class Builder(gtk.Window):
         if response != gtk.RESPONSE_CANCEL:
             self.stopping = True
         if response == gtk.RESPONSE_OK:
-            self.build_details_page.progress_bar.set_title("Stopping the build...")
+            self.build_details_page.progress_bar.set_stop_title("Stopping the build....")
             self.build_details_page.progress_bar.set_rcstyle("stop")
             self.cancel_build_sync()
         elif response == gtk.RESPONSE_YES:
bitbake/lib/bb/ui/crumbs/progressbar.py +5 -0
index f75818a..3e2c660 100644
@@ -43,6 +43,11 @@ class HobProgressBar (gtk.ProgressBar):
         text += " %.0f%%" % self.percentage
         self.set_text(text)
 
+    def set_stop_title(self, text=None):
+	if not text:
+	    text = ""
+	self.set_text(text)
+
     def reset(self):
         self.set_fraction(0)
         self.set_text("")
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 6 lines · Andrei Dinu

added a method in progressbar.py that doesn't update the percentage in the progress bar shown in hob.

the call of the method is done in builder.py.

Merged to master, thanks.

Richard