Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH 0/1][PULL][1.2.1] Hob: Fix bug 2371
@ 2012-05-07  6:08 Dongxiao Xu
  2012-05-07  6:08 ` [PATCH 1/1] Hob: Clear the building status if command failed Dongxiao Xu
  0 siblings, 1 reply; 3+ messages in thread
From: Dongxiao Xu @ 2012-05-07  6:08 UTC (permalink / raw)
  To: bitbake-devel

Hi Richard and Scott,

This pull request is to fix yocto bug 2371. Both for upstream and 1.2.1 branch.
Please help to review and pull.

Thanks,
Dongxiao

The following changes since commit ac9f8536bdae2f6bf6ef1c4b8e98c590842be40b:

  bitbake/tests: Add missing __init__.py file (2012-05-04 17:42:28 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib dxu4/hob-bugfix
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/hob-bugfix

Dongxiao Xu (1):
  Hob: Clear the building status if command failed

 lib/bb/ui/crumbs/hobeventhandler.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

-- 
1.7.4.1




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] Hob: Clear the building status if command failed
  2012-05-07  6:08 [PATCH 0/1][PULL][1.2.1] Hob: Fix bug 2371 Dongxiao Xu
@ 2012-05-07  6:08 ` Dongxiao Xu
  2012-05-07 10:02   ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Dongxiao Xu @ 2012-05-07  6:08 UTC (permalink / raw)
  To: bitbake-devel

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(-)

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,
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] Hob: Clear the building status if command failed
  2012-05-07  6:08 ` [PATCH 1/1] Hob: Clear the building status if command failed Dongxiao Xu
@ 2012-05-07 10:02   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-05-07 10:02 UTC (permalink / raw)
  To: Dongxiao Xu; +Cc: bitbake-devel

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-07 10:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-07  6:08 [PATCH 0/1][PULL][1.2.1] Hob: Fix bug 2371 Dongxiao Xu
2012-05-07  6:08 ` [PATCH 1/1] Hob: Clear the building status if command failed Dongxiao Xu
2012-05-07 10:02   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox