From bc5f0bdcb64c74ca1470b29bc342a356d18577e4 Mon Sep 17 00:00:00 2001 From: doogie <> Date: Thu, 22 Nov 2001 01:42:27 -0800 Subject: [PATCH] [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. --- cgi/pkgreport.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.39.5