]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2000-11-18 03:04:33 by ajt]
authorajt <>
Sat, 18 Nov 2000 11:04:33 +0000 (03:04 -0800)
committerajt <>
Sat, 18 Nov 2000 11:04:33 +0000 (03:04 -0800)
1 bug, 2 bugs. as opposed to 1 bugs

cgi/pkgindex.cgi

index 24fea17b577d7343f7eb5a7411c99ab0efe8fc35..b4e1a9d9d5e6525832e22c7f80de8f12652b7ae1 100755 (executable)
@@ -105,7 +105,8 @@ if ($indexon eq "pkg") {
 
 my $result = "<ul>\n";
 foreach my $x (sort { $sortkey{$a} cmp $sortkey{$b} } keys %count) {
-  $result .= "<li>" . $htmldescrip{$x} . " has $count{$x} bugs</li>\n";
+  $result .= "<li>" . $htmldescrip{$x} . " has $count{$x} " .
+            ($count{$x} == 1 ? "bug" : "bugs") . "</li>\n";
 }
 $result .= "</ul>\n";