From: Richard Purdie Date: Fri, 30 May 2014 14:57:50 +0000 (+0100) Subject: bitbake: bb.fatal: Raise a BBHandledException instead of exiting X-Git-Tag: rev_ivi_2015_02_04~7886 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ad91881bac492f4cf06d59c01b8ece0324419f4;p=scm%2Fbb%2Ftizen-distro.git 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 --- diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index 1478dd2..84f6ec3 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/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