diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index e6fd4fbd9e..a29e41afda 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py @@ -107,10 +107,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): diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index d2c42c858d..13d6e9d847 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -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()