summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-30 15:57:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-01 14:29:32 +0100
commit4a78f52d87d5bba57e24f550a84d99e045777b30 (patch)
tree31b5074eb0b6abcf79e45041d83ae6ebad94b3ed /bitbake/lib
parent91a164cb872d0c1f20d3a11c637c3a15fb1c8f77 (diff)
downloadpoky-4a78f52d87d5bba57e24f550a84d99e045777b30.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 situation instead. (Bitbake rev: 181a9735d02ebd517378558e909efc8b1b118973) 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 1478dd23ba..84f6ec3f3c 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