From: cjwatson <> Date: Sat, 26 Apr 2003 07:47:31 +0000 (-0800) Subject: [project @ 2003-04-26 00:47:31 by cjwatson] X-Git-Tag: release/2.6.0~926 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b1ea0023a0980471b01e35fb521123e6b56fda53;p=debbugs.git [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. --- 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;