From patchwork Sun Feb 26 08:48:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel,1/3] V5 Fix finish_now when no running task Date: Sun, 26 Feb 2012 08:48:14 -0000 From: Robert Yang X-Patchwork-Id: 22081 Message-Id: To: This patch comes from Richard, the finish_now did nothing when no running tasks in the past, it should always stop the runqueue, fix it now. [YOCTO #1589] Signed-off-by: Robert Yang --- bitbake/lib/bb/runqueue.py | 7 +++++++ 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