From: cjwatson <> Date: Tue, 19 Aug 2003 08:13:32 +0000 (-0800) Subject: [project @ 2003-08-19 01:13:32 by cjwatson] X-Git-Tag: release/2.6.0~821 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b463b061643631e911d5fee524e443732239e805;p=debbugs.git [project @ 2003-08-19 01:13:32 by cjwatson] Check more exactly for pending and fixed tags so that fixed-in-experimental and fixed-upstream don't wrongly show up under "Fixed in NMU". (If someone wants to add a "Fixed in experimental" section for now, please do ...) --- diff --git a/cgi/common.pl b/cgi/common.pl index 0e100b6..d911bd9 100644 --- a/cgi/common.pl +++ b/cgi/common.pl @@ -684,6 +684,7 @@ sub getbugstatus { } $status{tags} = $status{keywords}; + my %tags = map { $_ => 1 } split ' ', $status{tags}; $status{"package"} =~ s/\s*$//; $status{"package"} = 'unknown' if ($status{"package"} eq ''); @@ -691,8 +692,8 @@ sub getbugstatus { $status{"pending"} = 'pending'; $status{"pending"} = 'forwarded' if (length($status{"forwarded"})); - $status{"pending"} = 'pending-fixed' if ($status{"tags"} =~ /\bpending\b/); - $status{"pending"} = 'fixed' if ($status{"tags"} =~ /\bfixed\b/); + $status{"pending"} = 'pending-fixed' if ($tags{pending}); + $status{"pending"} = 'fixed' if ($tags{fixed}); my $version; if (defined $common_version) {