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>
This commit is contained in:
parent
1e2f64abc7
commit
adbfce3958
|
@ -28,7 +28,9 @@ and must not trigger events, directly or indirectly.
|
||||||
Commands are queued in a CommandQueue
|
Commands are queued in a CommandQueue
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import bb
|
import bb.event
|
||||||
|
import bb.cooker
|
||||||
|
import bb.data
|
||||||
|
|
||||||
async_cmds = {}
|
async_cmds = {}
|
||||||
sync_cmds = {}
|
sync_cmds = {}
|
||||||
|
@ -94,9 +96,9 @@ class Command:
|
||||||
|
|
||||||
def finishAsyncCommand(self, error = None):
|
def finishAsyncCommand(self, error = None):
|
||||||
if error:
|
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:
|
else:
|
||||||
bb.event.fire(bb.command.CookerCommandCompleted(), self.cooker.configuration.event_data)
|
bb.event.fire(CookerCommandCompleted(), self.cooker.configuration.event_data)
|
||||||
self.currentAsyncCommand = None
|
self.currentAsyncCommand = None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue