]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: runqueue.py: Clean up runqueue exception catching in the normal task failure...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Aug 2012 20:40:36 +0000 (20:40 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Aug 2012 22:01:35 +0000 (23:01 +0100)
(Bitbake rev: a0bc58031d4eb31f8587171e870ecad059af5098)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/runqueue.py

index d3a1d2d4f78a55fbc286c1efd462d771e6410c4b..bc2eb8772ee784c1d99c7d4ac20a65ad1560e441 100644 (file)
@@ -927,8 +927,11 @@ class RunQueue:
         return retval
 
     def execute_runqueue(self):
+        # Catch unexpected exceptions and ensure we exit when an error occurs, not loop.
         try:
             return self._execute_runqueue()
+        except bb.runqueue.TaskFailure:
+            raise
         except:
             logger.error("An uncaught exception occured in runqueue, please see the failure below:")
             self.state = runQueueComplete