bitbake/cooker.py: Finishing the command needs to happen after the BuildCompleted event else the cooker can shutdown first

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2010-03-25 17:31:23 +00:00
parent fb245be03d
commit 871f731e57
1 changed files with 2 additions and 2 deletions

View File

@ -692,8 +692,8 @@ class BBCooker:
failures = failures + 1
retval = False
if not retval:
self.command.finishAsyncCommand()
bb.event.fire(bb.event.BuildCompleted(buildname, item, failures), self.configuration.event_data)
self.command.finishAsyncCommand()
return False
return 0.5
@ -728,8 +728,8 @@ class BBCooker:
failures = failures + 1
retval = False
if not retval:
self.command.finishAsyncCommand()
bb.event.fire(bb.event.BuildCompleted(buildname, targets, failures), self.configuration.event_data)
self.command.finishAsyncCommand()
return None
return 0.5