]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/cooker.py: Finishing the command needs to happen after the BuildCompleted...
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 25 Mar 2010 17:31:23 +0000 (17:31 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 25 Mar 2010 17:31:23 +0000 (17:31 +0000)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/cooker.py

index 5dd8a95759b868c678559da3ca2747f3a622b575..3881df484af37213671853415b7d7ed8709d0582 100644 (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