From: Christopher Larson Date: Mon, 25 Feb 2013 18:48:00 +0000 (-0700) Subject: bitbake: cooker: now that we use a Pool, raise the exceptions X-Git-Tag: rev_ivi_2015_02_04~13591 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6875f55c527a18692bdfc0a6eb6fc5dc613fb821;p=scm%2Fbb%2Ftizen-distro.git bitbake: cooker: now that we use a Pool, raise the exceptions Multiprocessing catches these and handles passing them between processes itself, we don't need to do it ourselves anymore. [YOCTO #3926] (Bitbake rev: 9ca8e513dc142dd7aefadeb6db2ccdb00f38b39f) Signed-off-by: Christopher Larson Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 9f7121f..1b84e86 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -1563,12 +1563,12 @@ def parse_file((filename, appends, caches_array)): tb = sys.exc_info()[2] exc.recipe = filename exc.traceback = list(bb.exceptions.extract_traceback(tb, context=3)) - return True, exc + raise # Need to turn BaseExceptions into Exceptions here so we gracefully shutdown # and for example a worker thread doesn't just exit on its own in response to # a SystemExit event for example. except BaseException as exc: - return True, ParsingFailure(exc, filename) + raise ParsingFailure(exc, filename) class CookerParser(object): def __init__(self, cooker, filelist, masked):