From: Richard Purdie Date: Tue, 17 Sep 2013 18:15:26 +0000 (+0100) Subject: bitbake: Revert "bb.fatal: Raise a BBHandledException instead of exiting" X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb939628ecbc8e794f214e4688f7621c80fed182;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: Revert "bb.fatal: Raise a BBHandledException instead of exiting" Sanity test failures are no longer fatal with this change so whilst its the right idea, the code paths need more work. This reverts commit a50017ba71250e1710a6425b60ac7e3f03d88295. Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index 018b7442bf7..64491ff7f7b 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/lib/bb/__init__.py @@ -99,7 +99,8 @@ def error(*args): def fatal(*args): logger.critical(''.join(args)) - raise BBHandledException() + sys.exit(1) + def deprecated(func, name=None, advice=""): """This is a decorator which can be used to mark functions