diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-09 12:34:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-10 13:33:12 +0100 |
| commit | a43fcd15e981d318203f22ef5967fce249d5b574 (patch) | |
| tree | 05f02e3422720f12771cab6f28b3b939e474b1c5 | |
| parent | 83eacdcf13217b0aedad6e1298609440266a3291 (diff) | |
| download | poky-a43fcd15e981d318203f22ef5967fce249d5b574.tar.gz | |
bitbake/ui/knotty: Ensure previous failures aren't masked by a final successful command
When running bitbake in -k mode, the last command might succeed but we
still need to preserve any previous failure codes.
(Bitbake rev: 3ad3a53545b37ee8b26b22f4a0e00b19615b449a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 63b8dc6c5a..7a2681d2bf 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
| @@ -188,7 +188,8 @@ def main(server, eventHandler): | |||
| 188 | logger.error("Command execution failed: %s", event.error) | 188 | logger.error("Command execution failed: %s", event.error) |
| 189 | break | 189 | break |
| 190 | if isinstance(event, bb.command.CommandExit): | 190 | if isinstance(event, bb.command.CommandExit): |
| 191 | return_value = event.exitcode | 191 | if not return_value: |
| 192 | return_value = event.exitcode | ||
| 192 | continue | 193 | continue |
| 193 | if isinstance(event, bb.cooker.CookerExit): | 194 | if isinstance(event, bb.cooker.CookerExit): |
| 194 | break | 195 | break |
