diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 1799f1cc3c..73aaca0474 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py @@ -179,13 +179,6 @@ class CommandsSync: """ return bb.utils.cpu_count() - def triggerEvent(self, command, params): - """ - Trigger a certain event - """ - event = params[0] - bb.event.fire(eval(event), command.cooker.configuration.data) - class CommandsAsync: """ A class of asynchronous commands @@ -359,3 +352,13 @@ class CommandsAsync: command.cooker.parseConfigurationFiles(prefiles, postfiles) command.finishAsyncCommand() parseConfigurationFiles.needcache = False + + def triggerEvent(self, command, params): + """ + Trigger a certain event + """ + event = params[0] + bb.event.fire(eval(event), command.cooker.configuration.data) + command.currentAsyncCommand = None + triggerEvent.needcache = False +