From e4d72f98f75d7291ad5a3291b2e718f03cdff821 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Thu, 21 Sep 2017 16:13:35 -0400 Subject: [PATCH] Fixing breakage email To: list --- master.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/master.cfg b/master.cfg index 9402102..68ce93a 100644 --- a/master.cfg +++ b/master.cfg @@ -242,6 +242,7 @@ subsequent commits are made after X, by different people.""" rev = change.revision to = change.who.encode ('ascii', 'ignore').decode ('ascii') + to_list = [ to ] title = change.comments.split ('\n')[0] sbj = 'Oh dear. I regret to inform you that commit %s might be unfortunate' % change.revision @@ -266,11 +267,12 @@ subsequent commits are made after X, by different people.""" mail['Subject'] = sbj mail['From'] = 'gdb-buildbot@sergiodj.net' to += ", gdb-patches@sourceware.org" + to_list.append ('gdb-patches@sourceware.org') mail['To'] = to mail['Reply-To'] = 'gdb-patches@sourceware.org' s = smtplib.SMTP ('localhost') - s.sendmail (GDB_MAIL_FROM, [ to ], mail.as_string ()) + s.sendmail (GDB_MAIL_FROM, to_list, mail.as_string ()) s.quit () def MessageGDBTesters (mode, name, build, results, master_status):