]> git.donarmstrong.com Git - debbugs.git/commitdiff
Clean up links when there is no information about a package (closes:
authorDon Armstrong <don@donarmstrong.com>
Sun, 26 Oct 2008 21:30:51 +0000 (14:30 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sun, 26 Oct 2008 21:30:51 +0000 (14:30 -0700)
#452905)

Debbugs/CGI/Pkgreport.pm
debian/changelog

index beba95a89694f563b6085fccf20664d66ee9b800..feb85a91280da6bc05d61cc4b82dea91ae179d0e 100644 (file)
@@ -110,7 +110,8 @@ sub generate_package_info{
          print {$output} ".</p>\n";
      }
      else {
-         print {$output} "<p>No maintainer for $showpkg. Please do not report new bugs against this package.</p>\n";
+         print {$output} "<p>There is no maintainer for $showpkg. ".
+              "Please do not report new bugs against this package.</p>\n";
      }
      my @pkgs = getsrcpkgs($srcforpkg);
      @pkgs = grep( !/^\Q$package\E$/, @pkgs );
@@ -132,6 +133,11 @@ sub generate_package_info{
          push @references, "to the <a href=\"http://$config{web_domain}/pseudo-packages$config{html_suffix}\">".
               "list of other pseudo-packages</a>";
      }
+     elsif (not defined $maint and not @{$param{bugs}}) {
+         print {$output} "<p>There is no record of the " . html_escape($package) .
+              ($param{binary} ? " package" : " source package") .
+                   ", and no bugs have been filed against it.</p>";
+     }
      else {
          if ($package and defined $config{package_pages} and length $config{package_pages}) {
               push @references, sprintf "to the <a href=\"%s\">%s package page</a>",
@@ -160,11 +166,6 @@ sub generate_package_info{
          printf {$output} "<a href=\"%s\">report it</a>.</p>\n",
               html_escape("http://$config{web_domain}/Reporting$config{html_suffix}");
      }
-     if (not defined $maint and not @{$param{bugs}}) {
-         print {$output} "<p>There is no record of the " . html_escape($package) .
-              ($param{binary} ? " package" : " source package") .
-                   ", and no bugs have been filed against it.</p>";
-     }
      return $output_scalar;
 }
 
index 7330bc712da33e5cea4bee5ef79893dd804da9fb..5114cda9d185f04a117345a2ea1deee3c1bd54ed 100644 (file)
@@ -228,6 +228,8 @@ debbugs (2.4.2) UNRELEASED; urgency=low
   * No longer hard-code paths in age-1 (closes: #499682)
   * Change how maybelink links links (closes: #501757)
   * Use bug_subscription_domain in process (closes: #499680)
+  * Clean up links when there is no information about a package (closes:
+    #452905)
 
   
  -- Colin Watson <cjwatson@debian.org>  Fri, 20 Jun 2003 18:57:25 +0100