summaryrefslogtreecommitdiffstats
path: root/bitbake
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:04:38 +0000
commitaac45679fb17c720f511a30261d34eb64e6a4c70 (patch)
treee71a20bbe1bb3e44ffa216c782e13f21a608646b /bitbake
parent1cb4614f1d5e482b88ea372d1841a6c313a49941 (diff)
downloadast2050-yocto-poky-aac45679fb17c720f511a30261d34eb64e6a4c70.zip
ast2050-yocto-poky-aac45679fb17c720f511a30261d34eb64e6a4c70.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. (Bitbake rev: 9079ae0ab74f9232b7e9853b2013b051d4fcf623) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 1959007..1c3187d 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/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
OpenPOWER on IntegriCloud