From b463b061643631e911d5fee524e443732239e805 Mon Sep 17 00:00:00 2001 From: cjwatson <> Date: Tue, 19 Aug 2003 00:13:32 -0800 Subject: [PATCH] [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 ...) --- cgi/common.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) { -- 2.39.2