]> git.donarmstrong.com Git - debbugs.git/commitdiff
fix links to merged and blocked bugs
authorDon Armstrong <don@donarmstrong.com>
Sat, 1 Jul 2017 23:14:03 +0000 (16:14 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 1 Jul 2017 23:14:46 +0000 (16:14 -0700)
Debbugs/CGI/Bugreport.pm
debian/changelog

index de7be81935ff1b188bc03082bbd495b362bd5cc2..c1d0aaf13558447695c7250ae22b14c37798db22 100644 (file)
@@ -394,7 +394,7 @@ sub handle_record{
          # Add links to the cloned bugs
          $output =~ s{(Bug )(\d+)( cloned as bugs? )(\d+)(?:\-(\d+)|)}{$1.bug_links(bug=>$2).$3.bug_links(bug=>(defined $5)?[$4..$5]:$4)}eo;
          # Add links to merged bugs
-         $output =~ s{(?<=Merged )([\d\s]+)(?=\.)}{join(' ',map {bug_links(bug=>$_)} (split /\s+/, $1))}eo;
+         $output =~ s{(?<=Merged )([\d\s]+)(?=[\.<])}{join(' ',map {bug_links(bug=>$_)} (split /\s+/, $1))}eo;
          # Add links to blocked bugs
          $output =~ s{(?<=Blocking bugs)(?:( of )(\d+))?( (?:added|set to|removed):\s+)([\d\s\,]+)}
                      {(defined $2?$1.bug_links(bug=>$2):'').$3.
@@ -403,7 +403,7 @@ sub handle_record{
                       (\d+(?:,\s+\d+)*(?:\,?\s+and\s+\d+)?)}
                      {$1.(defined $3?$2.bug_links(bug=>$3):'').$4.
                           english_join([map {bug_links(bug=>$_)} (split /\,?\s+(?:and\s+)?/, $5)])}xeo;
-         $output =~ s{([Aa]dded|[Rr]emoved)( indication that bug )(\d+)( blocks )([\d\s\,]+)}
+         $output =~ s{([Aa]dded|[Rr]emoved)( indication that bug )(\d+)( blocks ?)([\d\s\,]+)}
                      {$1.$2.(bug_links(bug=>$3)).$4.
                           english_join([map {bug_links(bug=>$_)} (split /\,?\s+(?:and\s+)?/, $5)])}eo;
          # Add links to reassigned packages
index 05a7e7b2e9d18dbb74625cc7d128d93e1f626984..64257c37f1724224c361d58ed16fa9d717261991 100644 (file)
@@ -55,6 +55,7 @@ debbugs (2.6.0~exp1) UNRELEASED; urgency=low
   * Include link to the location of the debbugs source (Closes: #721569).
   * Add envelope_from configuration variable so sites can set a valid return
     path if the sendmail default is wrong. (Closes: #719205)
+  * Fix links to merged and blocked bugs. (Closes: #539691)
 
   [ Niels Thykier ]
   * quitcgi() now returns 400/500 status codes instead of 200 (Closes: #584922)