diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-05-07 14:08:35 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-07 11:03:01 +0100 |
commit | 7a49d88d22395afffb211045049a17b906219d82 (patch) | |
tree | e374c2d95a4bce6739b54c5ecaa60b4686575959 | |
parent | b478649e4964398cfd1197da359ee090ed63ab3e (diff) | |
download | ast2050-yocto-poky-7a49d88d22395afffb211045049a17b906219d82.zip ast2050-yocto-poky-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>
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 2 |
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 a07afdd..624d7b5 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, |