diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-02-13 11:41:32 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-22 20:25:30 +0000 |
commit | b62249f3db4f20dde50309b9ab3fbd4c5ac52e7e (patch) | |
tree | c3d50df91d4d5c0a2e1394deb6096360c5375d84 /bitbake/lib/bb/ui/knotty.py | |
parent | 5210cc40db41a470c561b7bd7193d246c3c7e1f2 (diff) | |
download | poky-b62249f3db4f20dde50309b9ab3fbd4c5ac52e7e.tar.gz |
bitbake/knotty: ensure we return non-zero exit code on Ctrl+C
If the user uses Ctrl+C to exit out of the build, then ensure we return
a non-zero exit code since the entire build was not completed
successfully.
If nothing else, this is useful to avoid continuing in the bitbake
wrapper script in OE-Core if the initial pseudo build is interrupted.
(Bitbake rev: c11eab7fa230f1fd5cc33589f3555b94e95f202d)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/knotty.py')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 22370efc60..a0bb1275ad 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -295,4 +295,9 @@ def main(server, eventHandler): | |||
295 | if summary: | 295 | if summary: |
296 | print(summary) | 296 | print(summary) |
297 | 297 | ||
298 | if shutdown: | ||
299 | print("Execution was interrupted, returning a non-zero exit code.") | ||
300 | if return_value == 0: | ||
301 | return_value = 1 | ||
302 | |||
298 | return return_value | 303 | return return_value |