]> code.ossystems Code Review - openembedded-core.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)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 19 Aug 2010 10:41:44 +0000 (11:41 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/cooker.py
bitbake/lib/bb/runqueue.py

index 8d65ba809ae5224335321b05a938586f5fa3433c..a1620b0162690d92ea0ce0cd109e218709d25bf4 100644 (file)
@@ -690,6 +690,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)
@@ -709,7 +711,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:
@@ -726,6 +727,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 52f8554141946de6b79de6ea67f13d48644ef46e..9f714e46ad9e81e38f1e79fc7f17519d813997e0 100644 (file)
@@ -854,6 +854,8 @@ class RunQueue:
         (if the abort on failure configuration option isn't set)
         """
 
+        retval = 0.5
+
         if self.state is runQueuePrepare:
             self.rqdata.prepare()
             self.state = runQueueRunInit
@@ -885,7 +887,7 @@ class RunQueue:
             return False
 
         # Loop
-        return True
+        return retval
 
     def execute_runqueue_initVars(self):