@@ -108,10 +108,10 @@ class Command:
if command not in CommandsAsync.__dict__:
return None, "No such command"
self.currentAsyncCommand = (command, commandline)
- self.cooker.idleCallBackRegister(self.cooker.runCommands, self.cooker)
+ self.cooker.idleCallBackRegister(self.runAsyncCommand, None)
return True, None
- def runAsyncCommand(self):
+ def runAsyncCommand(self, _, _2, halt):
try:
self.cooker.process_inotify_updates_apply()
if self.cooker.state in (bb.cooker.state.error, bb.cooker.state.shutdown, bb.cooker.state.forceshutdown):
@@ -535,15 +535,6 @@ class BBCooker:
logger.debug("Base environment change, triggering reparse")
self.reset()
- def runCommands(self, server, data, halt):
- """
- Run any queued asynchronous command
- This is done by the idle handler so it runs in true context rather than
- tied to any UI.
- """
-
- return self.command.runAsyncCommand()
-
def showVersions(self):
(latest_versions, preferred_versions, required) = self.findProviders()
Indirecting the async command handler via cooker is confusing and no longer needed. Drop it to make things slightly clearer. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- lib/bb/command.py | 4 ++-- lib/bb/cooker.py | 9 --------- 2 files changed, 2 insertions(+), 11 deletions(-)