]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2001-11-22 01:42:27 by doogie]
authordoogie <>
Thu, 22 Nov 2001 09:42:27 +0000 (01:42 -0800)
committerdoogie <>
Thu, 22 Nov 2001 09:42:27 +0000 (01:42 -0800)
Use the pkgsrc hash to map packages to source, instead of using the
sometimes empty $src variable, when displaying the package header.

cgi/pkgreport.cgi

index ca406fb665dcc02659dbc9b5c08cc5f962f02220..51a4a28ebb1449820831a2a58e522a08f536ce68 100755 (executable)
@@ -163,7 +163,7 @@ if (defined $pkg || defined $src) {
     if ($pkg) {
        my $stupidperl = ${debbugs::gPackagePages};
        printf "<p>You might like to refer to the <a href=\"%s\">%s package page</a>", urlsanit("http://${debbugs::gPackagePages}/$pkg"), htmlsanit("$pkg");
-       if ($src) {
+       if ($pkgsrc{ $pkg }) {
            printf ", or to the source package <a href=\"%s\">%s</a>'s bug page.</p>\n", srcurl($pkg), htmlsanit($pkgsrc{$pkg});
        } else {
            printf ".\n";