[bitbake-devel,1/3] V5 Fix finish_now when no running task

Submitted by Robert Yang on Feb. 26, 2012, 8:48 a.m.

Details

Message ID e614d45f3058a2eb2c49077b4d8d5a3d27a9a32a.1330245845.git.liezhi.yang@windriver.com
State New
Headers show

Commit Message

Robert Yang Feb. 26, 2012, 8:48 a.m.
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 <liezhi.yang@windriver.com>
---
 bitbake/lib/bb/runqueue.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

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