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

Robert Yang liezhi.yang at windriver.com
Sun Feb 26 08:48:14 UTC 2012


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 at windriver.com>
---
 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
 
-- 
1.7.4.1





More information about the bitbake-devel mailing list