summaryrefslogtreecommitdiff
path: root/bitbake-dev/lib/bb/command.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-01-19 14:48:19 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-01-19 14:48:19 +0000
commit22a271aaa99daeb6b29c42c2c1dc670bf204310e (patch)
treed2690b66e7a613820f34ceaecbce65809cbd22a3 /bitbake-dev/lib/bb/command.py
parentcefe87fc3c4202e942f34666813bc094df2ffb4b (diff)
downloadopenembedded-core-22a271aaa99daeb6b29c42c2c1dc670bf204310e.tar.gz
openembedded-core-22a271aaa99daeb6b29c42c2c1dc670bf204310e.tar.bz2
openembedded-core-22a271aaa99daeb6b29c42c2c1dc670bf204310e.tar.xz
openembedded-core-22a271aaa99daeb6b29c42c2c1dc670bf204310e.zip
bitbake-dev: Sync with upstream
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake-dev/lib/bb/command.py')
-rw-r--r--bitbake-dev/lib/bb/command.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/bitbake-dev/lib/bb/command.py b/bitbake-dev/lib/bb/command.py
index 1a1bf00b3..2bb5365c0 100644
--- a/bitbake-dev/lib/bb/command.py
+++ b/bitbake-dev/lib/bb/command.py
@@ -94,9 +94,9 @@ class Command:
def finishAsyncCommand(self, error = None):
if error:
- bb.event.fire(bb.command.CookerCommandFailed(self.cooker.configuration.event_data, error))
+ bb.event.fire(bb.command.CookerCommandFailed(error), self.cooker.configuration.event_data)
else:
- bb.event.fire(bb.command.CookerCommandCompleted(self.cooker.configuration.event_data))
+ bb.event.fire(bb.command.CookerCommandCompleted(), self.cooker.configuration.event_data)
self.currentAsyncCommand = None
@@ -247,24 +247,24 @@ class CookerCommandCompleted(bb.event.Event):
"""
Cooker command completed
"""
- def __init__(self, data):
- bb.event.Event.__init__(self, data)
+ def __init__(self):
+ bb.event.Event.__init__(self)
class CookerCommandFailed(bb.event.Event):
"""
Cooker command completed
"""
- def __init__(self, data, error):
- bb.event.Event.__init__(self, data)
+ def __init__(self, error):
+ bb.event.Event.__init__(self)
self.error = error
class CookerCommandSetExitCode(bb.event.Event):
"""
Set the exit code for a cooker command
"""
- def __init__(self, data, exitcode):
- bb.event.Event.__init__(self, data)
+ def __init__(self, exitcode):
+ bb.event.Event.__init__(self)
self.exitcode = int(exitcode)