From 9925e0ce6b7b6c5fa62ce1fed6b1198bb10c1c88 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Sat, 23 Jul 2005 19:22:24 +0000 Subject: openembedded/classes/tinderclient.bbclass: -Fix spacing and imports now we can test the tinderclient --- classes/tinderclient.bbclass | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'classes/tinderclient.bbclass') diff --git a/classes/tinderclient.bbclass b/classes/tinderclient.bbclass index 1553d16319..fc1f4d2137 100644 --- a/classes/tinderclient.bbclass +++ b/classes/tinderclient.bbclass @@ -51,8 +51,8 @@ def base_do_tinder_report(event): if name == "PkgFailed" or name == "BuildCompleted": status = 'build_failed' - if name == "BuildCompleted": - status = "success" + if name == "BuildCompleted": + status = "success" header = base_prepare_mail_header(event.data, status) # append the log log_file = data.getVar('TINDER_LOG', event.data, True) @@ -107,7 +107,9 @@ def base_do_tinder_report(event): s.close() addhandler tinderclient_eventhandler -python base_eventhandler() { +python tinderclient_eventhandler() { + from bb import note, error, data + from bb.event import NotHandled do_tinder_report = data.getVar('TINDER_REPORT', e.data, True) if do_tinder_report and do_tinder_report == "1": -- cgit v1.2.3