aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-25 16:02:29 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-26 11:03:16 +0000
commit9079ae0ab74f9232b7e9853b2013b051d4fcf623 (patch)
tree866b7fbfa73538a565f1e8f3beea42b4169c4bae /lib
parentd54dbe54cde8e0086bf1fb4926468e212660db53 (diff)
downloadbitbake-9079ae0ab74f9232b7e9853b2013b051d4fcf623.tar.gz
bitbake/runqueue: Ensure finish_now() sets the runqueue state consistently
If we call finish_now(True), rq.state is not updated to match. This makes the behaviour of finish_now(False) and finish_now(True) consistent so both leave rq.state consistently. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/runqueue.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 1959007be..1c3187d46 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1060,6 +1060,13 @@ class RunQueueExecute:
for pipe in self.build_pipes:
self.build_pipes[pipe].read()
+ if len(self.failed_fnids) != 0:
+ self.rq.state = runQueueFailed
+ return
+
+ self.rq.state = runQueueComplete
+ return
+
def finish(self):
self.rq.state = runQueueCleanUp