diff options
author | Andrei Dinu <andrei.adrianx.dinu@intel.com> | 2012-10-12 17:51:30 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-24 21:13:07 +0100 |
commit | b3374dbfd01ea5c962625781b6b9ce19829f3d5e (patch) | |
tree | 194704dbe73d9e22714b466aba5b4fe1525ab3ea | |
parent | 9cf610680f669c0b85036fdf2cb9c431eb040f6f (diff) | |
download | poky-b3374dbfd01ea5c962625781b6b9ce19829f3d5e.tar.gz |
bitbake: 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 rev: 7ab5775fceda1055b86bdc3313fc4bf928bf5155)
Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/progressbar.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index d417e1b214..b1ddf12cb1 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py | |||
@@ -1492,7 +1492,7 @@ class Builder(gtk.Window): | |||
1492 | if response != gtk.RESPONSE_CANCEL: | 1492 | if response != gtk.RESPONSE_CANCEL: |
1493 | self.stopping = True | 1493 | self.stopping = True |
1494 | if response == gtk.RESPONSE_OK: | 1494 | if response == gtk.RESPONSE_OK: |
1495 | self.build_details_page.progress_bar.set_title("Stopping the build...") | 1495 | self.build_details_page.progress_bar.set_stop_title("Stopping the build....") |
1496 | self.build_details_page.progress_bar.set_rcstyle("stop") | 1496 | self.build_details_page.progress_bar.set_rcstyle("stop") |
1497 | self.cancel_build_sync() | 1497 | self.cancel_build_sync() |
1498 | elif response == gtk.RESPONSE_YES: | 1498 | elif response == gtk.RESPONSE_YES: |
diff --git a/bitbake/lib/bb/ui/crumbs/progressbar.py b/bitbake/lib/bb/ui/crumbs/progressbar.py index f75818ac76..3e2c660e4a 100644 --- a/bitbake/lib/bb/ui/crumbs/progressbar.py +++ b/bitbake/lib/bb/ui/crumbs/progressbar.py | |||
@@ -43,6 +43,11 @@ class HobProgressBar (gtk.ProgressBar): | |||
43 | text += " %.0f%%" % self.percentage | 43 | text += " %.0f%%" % self.percentage |
44 | self.set_text(text) | 44 | self.set_text(text) |
45 | 45 | ||
46 | def set_stop_title(self, text=None): | ||
47 | if not text: | ||
48 | text = "" | ||
49 | self.set_text(text) | ||
50 | |||
46 | def reset(self): | 51 | def reset(self): |
47 | self.set_fraction(0) | 52 | self.set_fraction(0) |
48 | self.set_text("") | 53 | self.set_text("") |