From patchwork Mon May 7 06:08:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel,1/1] Hob: Clear the building status if command failed Date: Mon, 07 May 2012 06:08:35 -0000 From: Dongxiao Xu X-Patchwork-Id: 27197 Message-Id: <61752e5eaa9cd19b7432dba1d7b2d61e4d961118.1336370732.git.dongxiao.xu@intel.com> To: bitbake-devel@lists.openembedded.org 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 --- lib/bb/ui/crumbs/hobeventhandler.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py index a07afdd..624d7b5 100644 --- a/lib/bb/ui/crumbs/hobeventhandler.py +++ b/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,