bitbake/cooker.py: Allow idle handlers to pass through a true value
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
1db9ee5e8d
commit
96ec9f8a60
|
@ -690,6 +690,8 @@ class BBCooker:
|
||||||
bb.event.fire(bb.event.BuildCompleted(buildname, item, failures), self.configuration.event_data)
|
bb.event.fire(bb.event.BuildCompleted(buildname, item, failures), self.configuration.event_data)
|
||||||
self.command.finishAsyncCommand()
|
self.command.finishAsyncCommand()
|
||||||
return False
|
return False
|
||||||
|
if retval is True:
|
||||||
|
return True
|
||||||
return 0.5
|
return 0.5
|
||||||
|
|
||||||
self.server.register_idle_function(buildFileIdle, rq)
|
self.server.register_idle_function(buildFileIdle, rq)
|
||||||
|
@ -709,7 +711,6 @@ class BBCooker:
|
||||||
targets = self.checkPackages(targets)
|
targets = self.checkPackages(targets)
|
||||||
|
|
||||||
def buildTargetsIdle(server, rq, abort):
|
def buildTargetsIdle(server, rq, abort):
|
||||||
|
|
||||||
if abort or self.cookerAction == cookerStop:
|
if abort or self.cookerAction == cookerStop:
|
||||||
rq.finish_runqueue(True)
|
rq.finish_runqueue(True)
|
||||||
elif self.cookerAction == cookerShutdown:
|
elif self.cookerAction == cookerShutdown:
|
||||||
|
@ -726,6 +727,8 @@ class BBCooker:
|
||||||
bb.event.fire(bb.event.BuildCompleted(buildname, targets, failures), self.configuration.event_data)
|
bb.event.fire(bb.event.BuildCompleted(buildname, targets, failures), self.configuration.event_data)
|
||||||
self.command.finishAsyncCommand()
|
self.command.finishAsyncCommand()
|
||||||
return None
|
return None
|
||||||
|
if retval is True:
|
||||||
|
return True
|
||||||
return 0.5
|
return 0.5
|
||||||
|
|
||||||
self.buildSetVars()
|
self.buildSetVars()
|
||||||
|
|
|
@ -854,6 +854,8 @@ class RunQueue:
|
||||||
(if the abort on failure configuration option isn't set)
|
(if the abort on failure configuration option isn't set)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
retval = 0.5
|
||||||
|
|
||||||
if self.state is runQueuePrepare:
|
if self.state is runQueuePrepare:
|
||||||
self.rqdata.prepare()
|
self.rqdata.prepare()
|
||||||
self.state = runQueueRunInit
|
self.state = runQueueRunInit
|
||||||
|
@ -885,7 +887,7 @@ class RunQueue:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Loop
|
# Loop
|
||||||
return True
|
return retval
|
||||||
|
|
||||||
def execute_runqueue_initVars(self):
|
def execute_runqueue_initVars(self):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue