Author: jamessan
Date: 2010-01-03 03:20:08 +0000 (Sun, 03 Jan 2010)
New Revision: 2070

Modified:
   trunk/debian/changelog
   trunk/scripts/bts.pl
Log:
bts: Correct the address used to email the submitter when using the "bts done" 
command.

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2010-01-03 02:58:20 UTC (rev 2069)
+++ trunk/debian/changelog      2010-01-03 03:20:08 UTC (rev 2070)
@@ -1,6 +1,7 @@
 devscripts (2.10.61) UNRELEASED; urgency=low
 
-  * NOT RELEASED YET
+  * bts: Correct the address used to email the submitter when using the "bts
+    done" command.
 
  -- James Vega <[email protected]>  Sat, 02 Jan 2010 21:54:41 -0500
 

Modified: trunk/scripts/bts.pl
===================================================================
--- trunk/scripts/bts.pl        2010-01-03 02:58:20 UTC (rev 2069)
+++ trunk/scripts/bts.pl        2010-01-03 03:20:08 UTC (rev 2070)
@@ -146,6 +146,7 @@
 
 my %clonedbugs = ();
 my %ccpackages = ();
+my %ccsubmitters = ();
 
 =head1 SYNOPSIS
 
@@ -1205,7 +1206,7 @@
     }
 
     # Include the submitter in the email, so we act like a mail to -done
-    $ccpackages{"$bug-submitter"} = 1;
+    $ccsubmitters{"$bug-submitter"} = 1;
 }
 
 =item reopen <bug> [<submitter>]
@@ -2547,6 +2548,10 @@
        $ccs .= join("\...@$packagesserver, ", sort (keys %ccpackages))
            . "\...@$packagesserver";
     }
+    if (keys %ccsubmitters && $btsserver) {
+       $ccs .= join("\...@$btsserver, ", sort (keys %ccsubmitters))
+           . "\...@$btsserver";
+    }
     return $ccs;
 }
 



-- 
To unsubscribe, send mail to [email protected].

Reply via email to