]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bb.fatal: Raise a BBHandledException instead of exiting
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Sep 2013 16:59:24 +0000 (16:59 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Sep 2013 13:09:50 +0000 (14:09 +0100)
With new bitbake UIs having the cooker exit at 'random' points
in the codebase is problematic. This patch raises an exception
which matches the siutation instead.

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

index 64491ff7f7b2cf259110cfbf24f1ee3a16c09c80..018b7442bf7a9ee99799ef0f988fc849c0e75661 100644 (file)
@@ -99,8 +99,7 @@ def error(*args):
 
 def fatal(*args):
     logger.critical(''.join(args))
-    sys.exit(1)
-
+    raise BBHandledException()
 
 def deprecated(func, name=None, advice=""):
     """This is a decorator which can be used to mark functions