summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-02 13:58:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-02 18:15:27 +0100
commitc9c76ef2cf85f1594882a80e579076201586ddb6 (patch)
treed2b329c426085a5652dfed85d842b4fee82e1cb8
parent4baae7875d3d163bc4954b01f0d5a254dad077b2 (diff)
downloadpoky-c9c76ef2cf85f1594882a80e579076201586ddb6.tar.gz
bitbake/event: Allow event handlers to quietly raise SkipPackage events
(Bitbake rev: 2a7c92bdadf9a86d9ea2ea0c128108e38e0e97e5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/event.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 9dd7b663ee..088cd7c097 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -65,6 +65,8 @@ def execute_handler(name, handler, event, d):
65 event.data = d 65 event.data = d
66 try: 66 try:
67 ret = handler(event) 67 ret = handler(event)
68 except bb.parse.SkipPackage:
69 raise
68 except Exception: 70 except Exception:
69 etype, value, tb = sys.exc_info() 71 etype, value, tb = sys.exc_info()
70 logger.error("Execution of event handler '%s' failed" % name, 72 logger.error("Execution of event handler '%s' failed" % name,