From f4b5bbd37ee068da057541439d51b67c9fdca71d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 12 Sep 2006 01:42:16 -0700 Subject: [PATCH] * Split forwarded on commas for linking in pkgreport * Do not display duplicate bugs in pkgreport --- cgi/pkgreport.cgi | 10 +++++++++- debian/changelog | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index 569bd5c7..43dec82f 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -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 .= ";\nForwarded to " - . maybelink($status{forwarded}); + . join(', ', + map {maybelink($_)} + split /,\s*/,$status{forwarded} + ); } my $daysold = int((time - $status{date}) / 86400); # seconds to days if ($daysold >= 7) { diff --git a/debian/changelog b/debian/changelog index 2cc915aa..69d47bed 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 20 Jun 2003 18:57:25 +0100 -- 2.39.5