All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bitbake/runqueue: Ensure finish_now() sets the runqueue state consistently
@ 2012-02-25 16:02 Richard Purdie
  2012-02-26  9:41 ` Robert Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2012-02-25 16:02 UTC (permalink / raw)
  To: bitbake-devel

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.
    
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index c24841f..26a0f85 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
 





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-26  9:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-25 16:02 [PATCH] bitbake/runqueue: Ensure finish_now() sets the runqueue state consistently Richard Purdie
2012-02-26  9:41 ` Robert Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.