]> git.donarmstrong.com Git - debbugs.git/blobdiff - cgi/pkgindex.cgi
[project @ 2000-11-18 03:04:33 by ajt]
[debbugs.git] / 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";