summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-06-04 14:00:21 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-05 23:09:42 +0100
commitf1630d3cd49c4e30d913eb29289f9f7e29075dbb (patch)
tree6d4953ae124c3824a5c7d6e177c4919ec9283232 /bitbake/lib
parentb7f1a8f87092c9991e6eb879cfa4f30b4a3bf45d (diff)
downloadpoky-f1630d3cd49c4e30d913eb29289f9f7e29075dbb.tar.gz
Hob: Clear the building status if command failed
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] (Bitbake rev: 283dbbbf5d34adb4c9e3aa87e3925fdebe21ff42) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index a07afddead..624d7b55f3 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -199,6 +199,8 @@ class HobHandler(gobject.GObject):
199 self.clear_busy() 199 self.clear_busy()
200 self.emit("command-failed", self.error_msg) 200 self.emit("command-failed", self.error_msg)
201 self.error_msg = "" 201 self.error_msg = ""
202 if self.building:
203 self.building = False
202 elif isinstance(event, (bb.event.ParseStarted, 204 elif isinstance(event, (bb.event.ParseStarted,
203 bb.event.CacheLoadStarted, 205 bb.event.CacheLoadStarted,
204 bb.event.TreeDataPreparationStarted, 206 bb.event.TreeDataPreparationStarted,