diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-03-24 19:00:12 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-25 17:26:00 +0000 |
commit | adbfce3958ad954fa70967fe368de87d9f75cd93 (patch) | |
tree | 9eb9ede8809978c1d33f084402e10b9d87e5fcbf /bitbake | |
parent | 1e2f64abc739bd40c7ed84f4bede7d3ea4700e06 (diff) | |
download | poky-adbfce3958ad954fa70967fe368de87d9f75cd93.tar.gz |
bb/command was importing bb and accessing some of its own classes indirectly as bb.command.<class>
(Bitbake rev: 4b2a268ce8dad63d21619c1b9acc1de86d222d93)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/command.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 2bb5365c0c..06bd203c90 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -28,7 +28,9 @@ and must not trigger events, directly or indirectly. | |||
28 | Commands are queued in a CommandQueue | 28 | Commands are queued in a CommandQueue |
29 | """ | 29 | """ |
30 | 30 | ||
31 | import bb | 31 | import bb.event |
32 | import bb.cooker | ||
33 | import bb.data | ||
32 | 34 | ||
33 | async_cmds = {} | 35 | async_cmds = {} |
34 | sync_cmds = {} | 36 | sync_cmds = {} |
@@ -94,9 +96,9 @@ class Command: | |||
94 | 96 | ||
95 | def finishAsyncCommand(self, error = None): | 97 | def finishAsyncCommand(self, error = None): |
96 | if error: | 98 | if error: |
97 | bb.event.fire(bb.command.CookerCommandFailed(error), self.cooker.configuration.event_data) | 99 | bb.event.fire(CookerCommandFailed(error), self.cooker.configuration.event_data) |
98 | else: | 100 | else: |
99 | bb.event.fire(bb.command.CookerCommandCompleted(), self.cooker.configuration.event_data) | 101 | bb.event.fire(CookerCommandCompleted(), self.cooker.configuration.event_data) |
100 | self.currentAsyncCommand = None | 102 | self.currentAsyncCommand = None |
101 | 103 | ||
102 | 104 | ||