diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-21 09:35:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-21 11:00:48 +0100 |
commit | 39b08c604ba713100e174c136f81f18eca6ef33d (patch) | |
tree | 0d13dcd5e9d4d24bb8f1141efcac8215bec8b803 /lib/bb/command.py | |
parent | 021b778fa4685bdde39e1a0f6c7c57632dcf792a (diff) | |
download | bitbake-39b08c604ba713100e174c136f81f18eca6ef33d.tar.gz |
command/runqueue: Fix shutdown logic
If you hit Ctrl+C at the right point, the system processes the request
but merrily continues building. It turns out finish_runqueue() is called
but this doesn't stop the later generation and execution of the
runqueue.
This patch adjusts some of the conditionals to ensure the build really
does stop.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r-- | lib/bb/command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py index 84fcdf943..d797fcf93 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -86,7 +86,7 @@ class Command: def runAsyncCommand(self): try: - if self.cooker.state == bb.cooker.state.error: + if self.cooker.state in (bb.cooker.state.error, bb.cooker.state.shutdown, bb.cooker.state.forceshutdown): return False if self.currentAsyncCommand is not None: (command, options) = self.currentAsyncCommand |