From: joy <>
Date: Tue, 19 Aug 2003 18:45:51 +0000 (-0800)
Subject: [project @ 2003-08-19 11:45:51 by joy]
X-Git-Tag: release/2.6.0~819
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=05e7e0fe9362a27ff178ca03912f1804ee732361;p=debbugs.git
[project @ 2003-08-19 11:45:51 by joy]
avoid duplicating the pts link
---
diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi
index c4872397..07553741 100755
--- a/cgi/pkgreport.cgi
+++ b/cgi/pkgreport.cgi
@@ -264,6 +264,10 @@ if (defined $pkg || defined $src) {
my @pkgs = getsrcpkgs($pkg ? $srcforpkg : $src);
undef $srcforpkg unless @pkgs;
my @references;
+ my $ptslink = $src || $srcforpkg;
+ if (defined $debbugs::gSubscriptionDomain) {
+ push @references, "to the Package Tracking System";
+ }
@pkgs = grep( !/^\Q$pkg\E$/, @pkgs ) if ( $pkg );
if ( @pkgs ) {
@pkgs = sort @pkgs;
@@ -275,9 +279,6 @@ if (defined $pkg || defined $src) {
push @pkgs, $src if ( $src && !grep(/^\Q$src\E$/, @pkgs) );
print join( ", ", map( "$_", @pkgs ) );
print ".\n";
- if (defined $debbugs::gSubscriptionDomain) {
- push @references, "to the Package Tracking System";
- }
}
if ($pkg) {
my $pseudodesc = getpseudodesc();
@@ -287,9 +288,6 @@ if (defined $pkg || defined $src) {
push @references, sprintf "to the %s package page", urlsanit("http://${debbugs::gPackagePages}/$pkg"), htmlsanit("$pkg");
}
if ($srcforpkg) {
- if (defined $debbugs::gSubscriptionDomain) {
- push @references, "to the Package Tracking System";
- }
# 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);