From 4e4f040a73ca81f830cf90af05b75e7c06f91d8d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 9 Jan 2023 16:37:06 +0000 Subject: 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 --- bitbake/lib/bb/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/command.py') 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): -- cgit v1.2.3-54-g00ecf