bitbake: cooker/command: Drop async command handler indirection via cooker

Indirecting the async command handler via cooker is confusing and no
longer needed. Drop it to make things slightly clearer.

(Bitbake rev: 4a41a7d0594e6a84a67b9de70a505858aebcd84a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2023-01-09 16:37:06 +00:00
parent 44e148d616
commit 4e4f040a73
2 changed files with 2 additions and 11 deletions

View File

@@ -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):