diff options
author | Richard Purdie <richard@openedhand.com> | 2008-06-17 13:11:06 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-06-17 13:11:06 +0000 |
commit | 30d39ad5785beb8a1d5f02614a5207f227d73e24 (patch) | |
tree | fc438faa2da6d56805c6579d1af4d0b052de6e6d /meta/classes | |
parent | 103372246d4263677d14ffd63cdc7483f3831dd1 (diff) | |
download | poky-30d39ad5785beb8a1d5f02614a5207f227d73e24.tar.gz |
poky-autobuild-notifier.bbclass: Make sure the message is sent to all recipients
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4682 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/poky-autobuild-notifier.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/poky-autobuild-notifier.bbclass b/meta/classes/poky-autobuild-notifier.bbclass index 2ae6d5cf8f..5b0a77cb7a 100644 --- a/meta/classes/poky-autobuild-notifier.bbclass +++ b/meta/classes/poky-autobuild-notifier.bbclass | |||
@@ -19,8 +19,11 @@ def do_autobuilder_failure_report(event): | |||
19 | 19 | ||
20 | version = data.expand("${PN}: ${PV}-${PR}", event.data) | 20 | version = data.expand("${PN}: ${PV}-${PR}", event.data) |
21 | 21 | ||
22 | recipients = ["richard@o-hand.com", "ebassi@o-hand.com", "pippin@o-hand.com"] | ||
23 | COMMASPACE = ', ' | ||
24 | |||
22 | message = email.Message.Message() | 25 | message = email.Message.Message() |
23 | message["To"] = "richard@o-hand.com, ebassi@o-hand.com, pippin@o-hand.com" | 26 | message["To"] = COMMASPACE.join(recipients) |
24 | message["From"] = "Poky Autobuilder Failure <poky@o-hand.com>" | 27 | message["From"] = "Poky Autobuilder Failure <poky@o-hand.com>" |
25 | message["Subject"] = "Poky Autobuild Failure Report - " + version | 28 | message["Subject"] = "Poky Autobuild Failure Report - " + version |
26 | 29 | ||
@@ -38,7 +41,7 @@ def do_autobuilder_failure_report(event): | |||
38 | message.set_payload(mesg) | 41 | message.set_payload(mesg) |
39 | 42 | ||
40 | mailServer = smtplib.SMTP("pug.o-hand.com") | 43 | mailServer = smtplib.SMTP("pug.o-hand.com") |
41 | mailServer.sendmail(message["From"], message["To"], message.as_string()) | 44 | mailServer.sendmail(message["From"], recipients, message.as_string()) |
42 | mailServer.quit() | 45 | mailServer.quit() |
43 | 46 | ||
44 | # we want to be an event handler | 47 | # we want to be an event handler |