mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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:
@@ -107,10 +107,10 @@ class Command:
|
|||||||
if command not in CommandsAsync.__dict__:
|
if command not in CommandsAsync.__dict__:
|
||||||
return None, "No such command"
|
return None, "No such command"
|
||||||
self.currentAsyncCommand = (command, commandline)
|
self.currentAsyncCommand = (command, commandline)
|
||||||
self.cooker.idleCallBackRegister(self.cooker.runCommands, self.cooker)
|
self.cooker.idleCallBackRegister(self.runAsyncCommand, None)
|
||||||
return True, None
|
return True, None
|
||||||
|
|
||||||
def runAsyncCommand(self):
|
def runAsyncCommand(self, _, _2, halt):
|
||||||
try:
|
try:
|
||||||
self.cooker.process_inotify_updates_apply()
|
self.cooker.process_inotify_updates_apply()
|
||||||
if self.cooker.state in (bb.cooker.state.error, bb.cooker.state.shutdown, bb.cooker.state.forceshutdown):
|
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")
|
logger.debug("Base environment change, triggering reparse")
|
||||||
self.reset()
|
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):
|
def showVersions(self):
|
||||||
|
|
||||||
(latest_versions, preferred_versions, required) = self.findProviders()
|
(latest_versions, preferred_versions, required) = self.findProviders()
|
||||||
|
|||||||
Reference in New Issue
Block a user