summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-05-07 14:08:35 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-07 11:03:01 +0100
commit7a49d88d22395afffb211045049a17b906219d82 (patch)
treee374c2d95a4bce6739b54c5ecaa60b4686575959 /bitbake/lib/bb/ui
parentb478649e4964398cfd1197da359ee090ed63ab3e (diff)
downloadpoky-7a49d88d22395afffb211045049a17b906219d82.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/bb/ui')
-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,