diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-02 13:58:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-02 18:14:28 +0100 |
commit | 2a7c92bdadf9a86d9ea2ea0c128108e38e0e97e5 (patch) | |
tree | 59ccbc1e90eac3e986611d16ed3ee3c57a89500e | |
parent | 639db8c766cada7180f9447f51303f9b30d7e817 (diff) | |
download | bitbake-2a7c92bdadf9a86d9ea2ea0c128108e38e0e97e5.tar.gz |
bitbake/event: Allow event handlers to quietly raise SkipPackage events
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/event.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py index 9dd7b663e..088cd7c09 100644 --- a/lib/bb/event.py +++ b/lib/bb/event.py @@ -65,6 +65,8 @@ def execute_handler(name, handler, event, d): event.data = d try: ret = handler(event) + except bb.parse.SkipPackage: + raise except Exception: etype, value, tb = sys.exc_info() logger.error("Execution of event handler '%s' failed" % name, |