]> code.ossystems Code Review - openembedded-core.git/commitdiff
poky-autobuild-notifier.bbclass: Make sure the message is sent to all recipients
authorRichard Purdie <richard@openedhand.com>
Tue, 17 Jun 2008 13:11:06 +0000 (13:11 +0000)
committerRichard Purdie <richard@openedhand.com>
Tue, 17 Jun 2008 13:11:06 +0000 (13:11 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4682 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/poky-autobuild-notifier.bbclass

index 2ae6d5cf8fedbe94bfc24257dfcb0166b73ff302..5b0a77cb7ab4be176f14536529a991f307dbef67 100644 (file)
@@ -19,8 +19,11 @@ def do_autobuilder_failure_report(event):
 
     version = data.expand("${PN}: ${PV}-${PR}", event.data)
 
+    recipients = ["richard@o-hand.com", "ebassi@o-hand.com", "pippin@o-hand.com"]
+    COMMASPACE = ', '
+
     message = email.Message.Message()
-    message["To"]      = "richard@o-hand.com, ebassi@o-hand.com, pippin@o-hand.com"
+    message["To"]      = COMMASPACE.join(recipients)
     message["From"]    = "Poky Autobuilder Failure <poky@o-hand.com>"
     message["Subject"] = "Poky Autobuild Failure Report - " + version
 
@@ -38,7 +41,7 @@ def do_autobuilder_failure_report(event):
     message.set_payload(mesg)
 
     mailServer = smtplib.SMTP("pug.o-hand.com")
-    mailServer.sendmail(message["From"], message["To"], message.as_string())
+    mailServer.sendmail(message["From"], recipients, message.as_string())
     mailServer.quit()
 
 # we want to be an event handler