summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPeter Kjellerstedt <pkj@axis.com>2020-02-15 04:29:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-19 11:26:12 +0000
commitf8d1ac6653192f54ffdc372b223fff6b46344320 (patch)
tree1bd63d733c1465dc44a922735d4acf584dba5bc8 /bitbake
parentd2a47421f6e03f51ff140c4eabca36468d9e5635 (diff)
downloadpoky-f8d1ac6653192f54ffdc372b223fff6b46344320.tar.gz
bitbake: knotty: Make the bb.command.CommandExit event terminate bitbake
This matches the other bb.command.Command* events and without it, running `bitbake --revisions-changed` will hang indefinitely if there are changed revisions. (Bitbake rev: 40520d229c8ea51ee9784184ab5d13a82dd1eb61) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/knotty.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index a0340dfc20..cbb289b05f 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -590,6 +590,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
590 if isinstance(event, bb.command.CommandExit): 590 if isinstance(event, bb.command.CommandExit):
591 if not return_value: 591 if not return_value:
592 return_value = event.exitcode 592 return_value = event.exitcode
593 main.shutdown = 2
593 continue 594 continue
594 if isinstance(event, (bb.command.CommandCompleted, bb.cooker.CookerExit)): 595 if isinstance(event, (bb.command.CommandCompleted, bb.cooker.CookerExit)):
595 main.shutdown = 2 596 main.shutdown = 2