Hob: clear the building state after a successful build, as a failed build does
authorShane Wang <shane.wang@intel.com>
Thu, 29 Mar 2012 12:54:50 +0000 (20:54 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Mar 2012 20:25:54 +0000 (21:25 +0100)
(Bitbake rev: afd51c524006e8e6db1542cc2ebc5decab3faa1b)

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/builder.py
bitbake/lib/bb/ui/crumbs/hobeventhandler.py

index 9dd73da..c855f67 100755 (executable)
@@ -632,6 +632,7 @@ class Builder(gtk.Window):
         elif self.current_step == self.PACKAGE_GENERATING:
             fraction = 1.0
         self.build_details_page.update_progress_bar("Build Completed: ", fraction)
+        self.handler.build_succeeded_async()
         self.stopping = False
 
     def build_failed(self):
index 7d53e30..a329380 100644 (file)
@@ -358,6 +358,9 @@ class HobHandler(gobject.GObject):
         self.commands_async.append(self.SUB_BUILD_IMAGE)
         self.run_next_command(self.GENERATE_IMAGE)
 
+    def build_succeeded_async(self):
+        self.building = False
+
     def build_failed_async(self):
         self.initcmd = None
         self.commands_async = []