handle cc list better in emergency fail email b=372762 r=preed
authorrhelmer@mozilla.com
Tue, 10 Jul 2007 23:12:16 -0700
changeset 3322 d457d32a705be2503eb5e2e0368addbdcd77f5b2
parent 3321 f35bdc943e452a3661ef62301f4923939f73b373
child 3323 f423b1a2d108da13290846b5b10bdb4ef074422e
push idunknown
push userunknown
push dateunknown
reviewerspreed
bugs372762
milestone1.9a7pre
handle cc list better in emergency fail email b=372762 r=preed
tools/release/release
--- a/tools/release/release
+++ b/tools/release/release
@@ -134,23 +134,22 @@ sub PerformStep {
         }
     };
     if ($@) {
         my $error = $@;
         print "Step $stepName died: $error";
         my $conf = new Bootstrap::Config();
         my $from = $conf->Get(var => 'from');
         my $to = $conf->Get(var => 'to');
-        my $cc = $conf->Get(var => 'cc');
+        my @ccList = $conf->Exists(var => 'cc') ? split(/[,\s]+/, 
+          $conf->Get(var => 'cc')) : ();
         my $blat = $conf->Get(var => 'blat');
         my $sendmail = $conf->Get(var => 'sendmail');
         my $hostname = $conf->SystemInfo(var => 'hostname');
 
-        my @ccList = split(', ', $cc);
- 
         eval {
             Email(
               blat => $blat,
               sendmail => $sendmail,
               from => $from,
               to => $to,
               cc => \@ccList,
               subject => "$hostname - Step $stepName died: $error",