diff options
-rw-r--r-- | bitbake/lib/bb/command.py | 17 |
1 files changed, 10 insertions, 7 deletions
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: | |||
179 | """ | 179 | """ |
180 | return bb.utils.cpu_count() | 180 | return bb.utils.cpu_count() |
181 | 181 | ||
182 | def triggerEvent(self, command, params): | ||
183 | """ | ||
184 | Trigger a certain event | ||
185 | """ | ||
186 | event = params[0] | ||
187 | bb.event.fire(eval(event), command.cooker.configuration.data) | ||
188 | |||
189 | class CommandsAsync: | 182 | class CommandsAsync: |
190 | """ | 183 | """ |
191 | A class of asynchronous commands | 184 | A class of asynchronous commands |
@@ -359,3 +352,13 @@ class CommandsAsync: | |||
359 | command.cooker.parseConfigurationFiles(prefiles, postfiles) | 352 | command.cooker.parseConfigurationFiles(prefiles, postfiles) |
360 | command.finishAsyncCommand() | 353 | command.finishAsyncCommand() |
361 | parseConfigurationFiles.needcache = False | 354 | parseConfigurationFiles.needcache = False |
355 | |||
356 | def triggerEvent(self, command, params): | ||
357 | """ | ||
358 | Trigger a certain event | ||
359 | """ | ||
360 | event = params[0] | ||
361 | bb.event.fire(eval(event), command.cooker.configuration.data) | ||
362 | command.currentAsyncCommand = None | ||
363 | triggerEvent.needcache = False | ||
364 | |||