From b1ea0023a0980471b01e35fb521123e6b56fda53 Mon Sep 17 00:00:00 2001 From: cjwatson <> Date: Fri, 25 Apr 2003 23:47:31 -0800 Subject: [PATCH] [project @ 2003-04-26 00:47:31 by cjwatson] Only show a link to the source package if it's non-trivial, i.e. isn't just a single-binary source with the same name. --- cgi/pkgreport.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index 699365cc..fdf5709d 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -221,7 +221,10 @@ if (defined $pkg || defined $src) { if (defined $debbugs::gSubscriptionDomain) { push @references, "to the Package Tracking System"; } - push @references, sprintf "to the source package %s's bug page", srcurl($srcforpkg), htmlsanit($srcforpkg); + # Only output this if the source listing is non-trivial. + if (@pkgs or $pkg ne $srcforpkg) { + push @references, sprintf "to the source package %s's bug page", srcurl($srcforpkg), htmlsanit($srcforpkg); + } } if (@references) { $references[$#references] = "or $references[$#references]" if @references > 1; -- 2.39.5