diff options
author | Shane Wang <shane.wang@intel.com> | 2012-03-29 20:54:50 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-29 21:25:54 +0100 |
commit | 1ea547c1544c909a5fd6cba68543dcaf6e86e3b1 (patch) | |
tree | 9a0691117e79fd320a3605a41466a64b54e5ab9f /bitbake | |
parent | 00e262e49010cf9d05dccc3b27a972206b9ba1ac (diff) | |
download | poky-1ea547c1544c909a5fd6cba68543dcaf6e86e3b1.tar.gz |
Hob: clear the building state after a successful build, as a failed build does
(Bitbake rev: afd51c524006e8e6db1542cc2ebc5decab3faa1b)
Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index 9dd73dabaf..c855f67e55 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py | |||
@@ -632,6 +632,7 @@ class Builder(gtk.Window): | |||
632 | elif self.current_step == self.PACKAGE_GENERATING: | 632 | elif self.current_step == self.PACKAGE_GENERATING: |
633 | fraction = 1.0 | 633 | fraction = 1.0 |
634 | self.build_details_page.update_progress_bar("Build Completed: ", fraction) | 634 | self.build_details_page.update_progress_bar("Build Completed: ", fraction) |
635 | self.handler.build_succeeded_async() | ||
635 | self.stopping = False | 636 | self.stopping = False |
636 | 637 | ||
637 | def build_failed(self): | 638 | def build_failed(self): |
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 7d53e305dd..a329380af3 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -358,6 +358,9 @@ class HobHandler(gobject.GObject): | |||
358 | self.commands_async.append(self.SUB_BUILD_IMAGE) | 358 | self.commands_async.append(self.SUB_BUILD_IMAGE) |
359 | self.run_next_command(self.GENERATE_IMAGE) | 359 | self.run_next_command(self.GENERATE_IMAGE) |
360 | 360 | ||
361 | def build_succeeded_async(self): | ||
362 | self.building = False | ||
363 | |||
361 | def build_failed_async(self): | 364 | def build_failed_async(self): |
362 | self.initcmd = None | 365 | self.initcmd = None |
363 | self.commands_async = [] | 366 | self.commands_async = [] |