summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-03-24 19:00:12 -0700
committerChris Larson <chris_larson@mentor.com>2010-03-24 19:01:02 -0700
commit4b2a268ce8dad63d21619c1b9acc1de86d222d93 (patch)
tree89c2d98aca968890d0042cee3f829fb79a7d9d27
parent3eb01a20cbbb2e7a2f6278089bcc9bb70021738f (diff)
downloadbitbake-4b2a268ce8dad63d21619c1b9acc1de86d222d93.tar.gz
bb/command was importing bb and accessing some of its own classes indirectly as bb.command.<class>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--lib/bb/command.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 2bb5365c0..06bd203c9 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -28,7 +28,9 @@ and must not trigger events, directly or indirectly.
Commands are queued in a CommandQueue
"""
-import bb
+import bb.event
+import bb.cooker
+import bb.data
async_cmds = {}
sync_cmds = {}
@@ -94,9 +96,9 @@ class Command:
def finishAsyncCommand(self, error = None):
if error:
- bb.event.fire(bb.command.CookerCommandFailed(error), self.cooker.configuration.event_data)
+ bb.event.fire(CookerCommandFailed(error), self.cooker.configuration.event_data)
else:
- bb.event.fire(bb.command.CookerCommandCompleted(), self.cooker.configuration.event_data)
+ bb.event.fire(CookerCommandCompleted(), self.cooker.configuration.event_data)
self.currentAsyncCommand = None