From: doogie <> Date: Thu, 22 Nov 2001 09:42:27 +0000 (-0800) Subject: [project @ 2001-11-22 01:42:27 by doogie] X-Git-Tag: release/2.6.0~1082 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bc5f0bdcb64c74ca1470b29bc342a356d18577e4;p=debbugs.git [project @ 2001-11-22 01:42:27 by doogie] Use the pkgsrc hash to map packages to source, instead of using the sometimes empty $src variable, when displaying the package header. --- diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index ca406fb6..51a4a28e 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -163,7 +163,7 @@ if (defined $pkg || defined $src) { if ($pkg) { my $stupidperl = ${debbugs::gPackagePages}; printf "

You might like to refer to the %s package page", urlsanit("http://${debbugs::gPackagePages}/$pkg"), htmlsanit("$pkg"); - if ($src) { + if ($pkgsrc{ $pkg }) { printf ", or to the source package %s's bug page.

\n", srcurl($pkg), htmlsanit($pkgsrc{$pkg}); } else { printf ".\n";