From aac45679fb17c720f511a30261d34eb64e6a4c70 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 25 Feb 2012 16:02:29 +0000 Subject: 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 --- bitbake/lib/bb/runqueue.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 1959007bec..1c3187d462 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 -- cgit v1.2.3-54-g00ecf