summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
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:11:05 +0100
commitd96c512db1a6c1cc31c97791da2b66492e59e20e (patch)
treee6a9a0798144a70a734ea6f90d907b17e795e34d /bitbake/lib
parentd15652d78c2e6c3af4658726711332c1ee127427 (diff)
downloadpoky-d96c512db1a6c1cc31c97791da2b66492e59e20e.tar.gz
bitbake: 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. (Bitbake rev: a50017ba71250e1710a6425b60ac7e3f03d88295) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index 64491ff7f7..018b7442bf 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -99,8 +99,7 @@ def error(*args):
99 99
100def fatal(*args): 100def fatal(*args):
101 logger.critical(''.join(args)) 101 logger.critical(''.join(args))
102 sys.exit(1) 102 raise BBHandledException()
103
104 103
105def deprecated(func, name=None, advice=""): 104def deprecated(func, name=None, advice=""):
106 """This is a decorator which can be used to mark functions 105 """This is a decorator which can be used to mark functions