summaryrefslogtreecommitdiff
path: root/classes/tinderclient.bbclass
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2005-07-23 19:22:24 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-23 19:22:24 +0000
commit9925e0ce6b7b6c5fa62ce1fed6b1198bb10c1c88 (patch)
treedb87162b45baf6cf5b693cd20f610b5fe7adc461 /classes/tinderclient.bbclass
parent1fddfd87c947d8f9d301fe4b682982189eca5c95 (diff)
openembedded/classes/tinderclient.bbclass:
-Fix spacing and imports now we can test the tinderclient
Diffstat (limited to 'classes/tinderclient.bbclass')
-rw-r--r--classes/tinderclient.bbclass8
1 files changed, 5 insertions, 3 deletions
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":