[bitbake-devel] [PATCH] bitbake/ui/knotty: Ensure previous failures aren't masked by a final successful command

Richard Purdie richard.purdie at linuxfoundation.org
Tue Aug 9 13:42:33 UTC 2011


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 at 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






More information about the bitbake-devel mailing list