]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake/cooker.py: Allow idle handlers to pass through a true value
authorRichard Purdie <rpurdie@linux.intel.com>
Wed, 18 Aug 2010 16:37:15 +0000 (17:37 +0100)
committerChris Larson <chris_larson@mentor.com>
Fri, 3 Dec 2010 19:23:16 +0000 (12:23 -0700)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
lib/bb/cooker.py
lib/bb/runqueue.py

index 4ca32bc75f525b1351551cfaaa4fb34faa480697..30ff8f2d0eea277ab5f5a86e37f41e6cf788d4b3 100644 (file)
@@ -688,6 +688,8 @@ class BBCooker:
                 bb.event.fire(bb.event.BuildCompleted(buildname, item, failures), self.configuration.event_data)
                 self.command.finishAsyncCommand()
                 return False
+            if retval is True:
+                return True
             return 0.5
 
         self.server.register_idle_function(buildFileIdle, rq)
@@ -707,7 +709,6 @@ class BBCooker:
         targets = self.checkPackages(targets)
 
         def buildTargetsIdle(server, rq, abort):
-
             if abort or self.cookerAction == cookerStop:
                 rq.finish_runqueue(True)
             elif self.cookerAction == cookerShutdown:
@@ -724,6 +725,8 @@ class BBCooker:
                 bb.event.fire(bb.event.BuildCompleted(buildname, targets, failures), self.configuration.event_data)
                 self.command.finishAsyncCommand()
                 return None
+            if retval is True:
+                return True
             return 0.5
 
         self.buildSetVars()
index 070452e84dd75195730836b204c325a584f861c9..cd3c25e4fece9c6e552633e6938cc216d672186f 100644 (file)
@@ -860,6 +860,8 @@ class RunQueue:
         (if the abort on failure configuration option isn't set)
         """
 
+        retval = 0.5
+
         if self.state is runQueuePrepare:
             self.prepare_runqueue()
 
@@ -890,7 +892,7 @@ class RunQueue:
             return False
 
         # Loop
-        return True
+        return retval
 
     def execute_runqueue_initVars(self):