diff options
Diffstat (limited to 'bitbake-dev/lib/bb/command.py')
-rw-r--r-- | bitbake-dev/lib/bb/command.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bitbake-dev/lib/bb/command.py b/bitbake-dev/lib/bb/command.py index 1a1bf00b33..2bb5365c0c 100644 --- a/bitbake-dev/lib/bb/command.py +++ b/bitbake-dev/lib/bb/command.py | |||
@@ -94,9 +94,9 @@ class Command: | |||
94 | 94 | ||
95 | def finishAsyncCommand(self, error = None): | 95 | def finishAsyncCommand(self, error = None): |
96 | if error: | 96 | if error: |
97 | bb.event.fire(bb.command.CookerCommandFailed(self.cooker.configuration.event_data, error)) | 97 | bb.event.fire(bb.command.CookerCommandFailed(error), self.cooker.configuration.event_data) |
98 | else: | 98 | else: |
99 | bb.event.fire(bb.command.CookerCommandCompleted(self.cooker.configuration.event_data)) | 99 | bb.event.fire(bb.command.CookerCommandCompleted(), self.cooker.configuration.event_data) |
100 | self.currentAsyncCommand = None | 100 | self.currentAsyncCommand = None |
101 | 101 | ||
102 | 102 | ||
@@ -247,24 +247,24 @@ class CookerCommandCompleted(bb.event.Event): | |||
247 | """ | 247 | """ |
248 | Cooker command completed | 248 | Cooker command completed |
249 | """ | 249 | """ |
250 | def __init__(self, data): | 250 | def __init__(self): |
251 | bb.event.Event.__init__(self, data) | 251 | bb.event.Event.__init__(self) |
252 | 252 | ||
253 | 253 | ||
254 | class CookerCommandFailed(bb.event.Event): | 254 | class CookerCommandFailed(bb.event.Event): |
255 | """ | 255 | """ |
256 | Cooker command completed | 256 | Cooker command completed |
257 | """ | 257 | """ |
258 | def __init__(self, data, error): | 258 | def __init__(self, error): |
259 | bb.event.Event.__init__(self, data) | 259 | bb.event.Event.__init__(self) |
260 | self.error = error | 260 | self.error = error |
261 | 261 | ||
262 | class CookerCommandSetExitCode(bb.event.Event): | 262 | class CookerCommandSetExitCode(bb.event.Event): |
263 | """ | 263 | """ |
264 | Set the exit code for a cooker command | 264 | Set the exit code for a cooker command |
265 | """ | 265 | """ |
266 | def __init__(self, data, exitcode): | 266 | def __init__(self, exitcode): |
267 | bb.event.Event.__init__(self, data) | 267 | bb.event.Event.__init__(self) |
268 | self.exitcode = int(exitcode) | 268 | self.exitcode = int(exitcode) |
269 | 269 | ||
270 | 270 | ||