Patchwork [bitbake-devel,1/1] Hob: Clear the building status if command failed

login
register
mail settings
Submitter Dongxiao Xu
Date May 7, 2012, 6:08 a.m.
Message ID <61752e5eaa9cd19b7432dba1d7b2d61e4d961118.1336370732.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/27197/
State Accepted
Commit 283dbbbf5d34adb4c9e3aa87e3925fdebe21ff42
Headers show

Comments

Dongxiao Xu - May 7, 2012, 6:08 a.m.
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>
---
 lib/bb/ui/crumbs/hobeventhandler.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Richard Purdie - May 7, 2012, 10:02 a.m.
On Mon, 2012-05-07 at 14:08 +0800, Dongxiao Xu wrote:
> 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>
> ---
>  lib/bb/ui/crumbs/hobeventhandler.py |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)

Merged to master, thanks.

Richard

Patch

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,