[bitbake-devel] [PATCH 15/16] bitbake: bb.fatal: Raise a BBHandledException instead of exiting
Richard Purdie
richard.purdie at linuxfoundation.org
Mon Sep 16 21:53:32 UTC 2013
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: 4effcdf21f42bf0c82891d998934065ca9f0097e)
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/__init__.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py
index 64491ff..018b744 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
--
1.8.1.2
More information about the bitbake-devel
mailing list