diff options
author | Christopher Larson <chris_larson@mentor.com> | 2013-02-25 11:48:00 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-26 07:28:05 -0800 |
commit | 9ca8e513dc142dd7aefadeb6db2ccdb00f38b39f (patch) | |
tree | 487c32e8222763e34e8b974923e07366583f6e26 | |
parent | b7440fb36b419996046f607e66434ce34722272b (diff) | |
download | bitbake-9ca8e513dc142dd7aefadeb6db2ccdb00f38b39f.tar.gz |
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]
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/cooker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 9f7121fef..1b84e86bd 100644 --- a/lib/bb/cooker.py +++ b/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): |