From f1630d3cd49c4e30d913eb29289f9f7e29075dbb Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Mon, 4 Jun 2012 14:00:21 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake') 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): 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, -- cgit v1.2.3-54-g00ecf