summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-21 09:35:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-21 19:24:29 +0100
commit13a03f2e9c0c94a083664d0081296f74746a6746 (patch)
treebab3da0710ff118d229cb3ed71d1302acacf7794 /bitbake/lib/bb/runqueue.py
parent4db62dff9fcf95b7b507df29898d830db13cfaff (diff)
downloadpoky-13a03f2e9c0c94a083664d0081296f74746a6746.tar.gz
bitbake: 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. (Bitbake rev: 39b08c604ba713100e174c136f81f18eca6ef33d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 4ea4970127..f68a11d90d 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1065,7 +1065,7 @@ class RunQueue:
1065 if self.state is runQueueCleanUp: 1065 if self.state is runQueueCleanUp:
1066 self.rqexe.finish() 1066 self.rqexe.finish()
1067 1067
1068 if self.state is runQueueComplete or self.state is runQueueFailed: 1068 if (self.state is runQueueComplete or self.state is runQueueFailed) and self.rqexe:
1069 self.teardown_workers() 1069 self.teardown_workers()
1070 if self.rqexe.stats.failed: 1070 if self.rqexe.stats.failed:
1071 logger.info("Tasks Summary: Attempted %d tasks of which %d didn't need to be rerun and %d failed.", self.rqexe.stats.completed + self.rqexe.stats.failed, self.rqexe.stats.skipped, self.rqexe.stats.failed) 1071 logger.info("Tasks Summary: Attempted %d tasks of which %d didn't need to be rerun and %d failed.", self.rqexe.stats.completed + self.rqexe.stats.failed, self.rqexe.stats.skipped, self.rqexe.stats.failed)
@@ -1106,6 +1106,7 @@ class RunQueue:
1106 1106
1107 def finish_runqueue(self, now = False): 1107 def finish_runqueue(self, now = False):
1108 if not self.rqexe: 1108 if not self.rqexe:
1109 self.state = runQueueComplete
1109 return 1110 return
1110 1111
1111 if now: 1112 if now: