]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-08-19 01:13:32 by cjwatson]
authorcjwatson <>
Tue, 19 Aug 2003 08:13:32 +0000 (00:13 -0800)
committercjwatson <>
Tue, 19 Aug 2003 08:13:32 +0000 (00:13 -0800)
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

index 0e100b6575ed21a28d335b42bc458c0afb5a69c4..d911bd991f0dd3e0d6ada927a7fa32b1e8de1a1b 100644 (file)
@@ -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) {