]> git.donarmstrong.com Git - debbugs.git/commitdiff
Fix links to PTS pages for src packages (closes: #566089). Thanks to
authorDon Armstrong <don@donarmstrong.com>
Mon, 1 Feb 2010 17:23:20 +0000 (09:23 -0800)
committerDon Armstrong <don@donarmstrong.com>
Mon, 1 Feb 2010 17:23:20 +0000 (09:23 -0800)
Sandro Tosi.

Debbugs/CGI/Pkgreport.pm
debian/changelog

index 57d1cc4d1735d05e08e03ff485e8bbf6ae532bf6..d047affb1d262827d204552b3fc4c52ece4e9b63 100644 (file)
@@ -74,7 +74,7 @@ sub generate_package_info{
                               spec  => {binary => {type => BOOLEAN,
                                                    default => 1,
                                                   },
-                                        package => {type => SCALAR|ARRAYREF,
+                                        package => {type => SCALAR,#|ARRAYREF,
                                                    },
                                         options => {type => HASHREF,
                                                    },
@@ -142,6 +142,8 @@ sub generate_package_info{
          if (defined $config{subscription_domain} and
              length $config{subscription_domain}) {
               my $ptslink = $param{binary} ? $srcforpkg : $package;
+              # the pts only wants the source, and doesn't care about src: (#566089)
+              $ptslink =~ s/^src://;
               push @references, q(to the <a href="http://).html_escape("$config{subscription_domain}/$ptslink").q(">Package Tracking System</a>);
          }
          # Only output this if the source listing is non-trivial.
index 4618e6e7fad3105e68cb572a1a5989ecd60bfb60..56ac6cc49fe2be51784b4b3722f305e20fb75f86 100644 (file)
@@ -10,6 +10,8 @@ debbugs (2.4.2~exp1) experimental; urgency=low
     (closes: #565981). Thanks to Mike Hommey
   * Allow type to be text as well as text/(something not html)
     (closes: #566068). Thanks to Mike Hommey.
+  * Fix links to PTS pages for src packages (closes: #566089). Thanks to
+    Sandro Tosi.
 
  -- Don Armstrong <don@debian.org>  Wed, 26 Aug 2009 21:32:53 -0700