]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Hob: Clear the building status if command failed
authorDongxiao Xu <dongxiao.xu@intel.com>
Mon, 7 May 2012 06:08:35 +0000 (14:08 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 May 2012 10:02:17 +0000 (11:02 +0100)
We may meet certain command failure during build time, for example,
out of memory. In this case, we need to clear the "building" status.

This fixes [YOCTO #2371]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/crumbs/hobeventhandler.py

index a07afddead9e88952f23a94d216ae5ea04e0d160..624d7b55f37523d28f8fc5eb3a8f8bd05aea5104 100644 (file)
@@ -199,6 +199,8 @@ class HobHandler(gobject.GObject):
             self.clear_busy()
             self.emit("command-failed", self.error_msg)
             self.error_msg = ""
+            if self.building:
+                self.building = False
         elif isinstance(event, (bb.event.ParseStarted,
                  bb.event.CacheLoadStarted,
                  bb.event.TreeDataPreparationStarted,