Use the pkgsrc hash to map packages to source, instead of using the
sometimes empty $src variable, when displaying the package header.
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";