From 53841ce521d44c0c9cca512675a12f81a491fe52 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 12 Jun 2013 16:31:57 +0000 Subject: classes/conf: Add eventmasks for event handlers Now that bitbake supports masking events for event handlers, lets use this so event handlers are only called for events they care about. This lets us simplify the code indentation a bit at least as well as mildly improving the event handling performance. (From OE-Core rev: bff73743280f9eafebe4591f7368ead91a4eb74d) Signed-off-by: Richard Purdie --- meta/classes/bugzilla.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/classes/bugzilla.bbclass') diff --git a/meta/classes/bugzilla.bbclass b/meta/classes/bugzilla.bbclass index 006763d2c7..3fc8956428 100644 --- a/meta/classes/bugzilla.bbclass +++ b/meta/classes/bugzilla.bbclass @@ -71,6 +71,7 @@ def bugzilla_add_comment(debug_file, server, args, bug_number, text): return False addhandler bugzilla_eventhandler +bugzilla_eventhandler[eventmask] = "bb.event.MsgNote bb.build.TaskFailed" python bugzilla_eventhandler() { import glob import xmlrpclib, httplib -- cgit v1.2.3-54-g00ecf