bitbake/event: Allow event handlers to quietly raise SkipPackage events

(Bitbake rev: 2a7c92bdadf9a86d9ea2ea0c128108e38e0e97e5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2011-09-02 13:58:54 +01:00
parent 4baae7875d
commit c9c76ef2cf
1 changed files with 2 additions and 0 deletions

View File

@ -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,