From: Richard Purdie Date: Wed, 18 Aug 2010 16:37:15 +0000 (+0100) Subject: bitbake/cooker.py: Allow idle handlers to pass through a true value X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=62604b9e05981487c054c0bab5599bd7c59f99a0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake/cooker.py: Allow idle handlers to pass through a true value Signed-off-by: Richard Purdie --- diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 4ca32bc75f5..30ff8f2d0ee 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -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() diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 070452e84dd..cd3c25e4fec 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -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):