Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH] bitbake/ui/knotty: Ensure previous failures aren't masked by a final successful command
@ 2011-08-09 13:42 Richard Purdie
  2011-08-09 16:25 ` Joshua Lock
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2011-08-09 13:42 UTC (permalink / raw)
  To: bitbake-devel

When running bitbake in -k mode, the last command might succeed but we
still need to preserve any previous failure codes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 63b8dc6..7a2681d 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -188,7 +188,8 @@ def main(server, eventHandler):
                 logger.error("Command execution failed: %s", event.error)
                 break
             if isinstance(event, bb.command.CommandExit):
-                return_value = event.exitcode
+                if not return_value:
+                    return_value = event.exitcode
                 continue
             if isinstance(event, bb.cooker.CookerExit):
                 break





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

end of thread, other threads:[~2011-08-09 16:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09 13:42 [PATCH] bitbake/ui/knotty: Ensure previous failures aren't masked by a final successful command Richard Purdie
2011-08-09 16:25 ` Joshua Lock

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