summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-14 16:59:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-17 14:09:50 +0100
commita50017ba71250e1710a6425b60ac7e3f03d88295 (patch)
treef50ce9b6cc9d1c2c1096763075e2aeef8a7fa8cc
parent8a59a8707cecbde257fca169775ce8ff7709928b (diff)
downloadbitbake-a50017ba71250e1710a6425b60ac7e3f03d88295.tar.gz
bb.fatal: Raise a BBHandledException instead of exiting
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>
-rw-r--r--lib/bb/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py
index 64491ff7f..018b7442b 100644
--- a/lib/bb/__init__.py
+++ b/lib/bb/__init__.py
@@ -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