]> git.donarmstrong.com Git - debbugs.git/commitdiff
* Split forwarded on commas for linking in pkgreport
authorDon Armstrong <don@volo>
Tue, 12 Sep 2006 08:42:16 +0000 (01:42 -0700)
committerDon Armstrong <don@volo>
Tue, 12 Sep 2006 08:42:16 +0000 (01:42 -0700)
 * Do not display duplicate bugs in pkgreport

cgi/pkgreport.cgi
debian/changelog

index 569bd5c7e4f55a2d38eedb2197cb501ae7df8b60..43dec82f51fd61e788445b2c7ce10ad9edf1d7fd 100755 (executable)
@@ -365,6 +365,11 @@ $title = htmlsanit($title);
 my @names; my @prior; my @title; my @order;
 determine_ordering();
 
+# strip out duplicate bugs
+my %bugs;
+@bugs{@bugs} = @bugs;
+@bugs = keys %bugs;
+
 my $result = pkg_htmlizebugs(\@bugs);
 
 print "Content-Type: text/html; charset=utf-8\n\n";
@@ -642,7 +647,10 @@ sub pkg_htmlindexentrystatus {
     unless (length($status{done})) {
         if (length($status{forwarded})) {
             $result .= ";\n<strong>Forwarded</strong> to "
-                       . maybelink($status{forwarded});
+                       . join(', ',
+                             map {maybelink($_)}
+                             split /,\s*/,$status{forwarded}
+                            );
         }
         my $daysold = int((time - $status{date}) / 86400);   # seconds to days
         if ($daysold >= 7) {
index 2cc915aacce359a01845f0d52fb5a3c618762384..69d47bedc61f20880aca0d1efa9ffa72549388e3 100644 (file)
@@ -124,6 +124,8 @@ debbugs (2.4.2) UNRELEASED; urgency=low
     - Explain how to close bugs in the ack message (closes: #37605)
     - Make the moreinfo ack more general (closes: #70810)
     - Use RFC compliant dates in headers (closes: #362935)
+    - Split forwarded on commas for linking (closes: #367813)
+    - Don't display duplicate bugs (closes: #348116)
 
   
  -- Colin Watson <cjwatson@debian.org>  Fri, 20 Jun 2003 18:57:25 +0100