]> git.donarmstrong.com Git - debbugs.git/commitdiff
* link to blocking bugs in bugreport.cgi
authorDon Armstrong <don@volo>
Thu, 6 Jul 2006 00:37:24 +0000 (17:37 -0700)
committerDon Armstrong <don@volo>
Thu, 6 Jul 2006 00:37:24 +0000 (17:37 -0700)
cgi/bugreport.cgi

index 64e367a5f0f25a482e999337618f2857110a9172..f61ad08408129679b6ba9cbe289e6cbd75b3f3c0 100755 (executable)
@@ -404,6 +404,10 @@ sub handle_record{
          $output =~ s{(Bug )(\d+)( cloned as bugs? )(\d+)(?:\-(\d+)|)}{$1.bug_links($2).$3.bug_links($4,$5)}eo;
          # Add links to merged bugs
          $output =~ s{(?<=Merged )([\d\s]+)(?=\.)}{join(' ',map {bug_links($_)} (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($2):'').$3.
+                           join(' ',map {bug_links($_)} (split /\s+/, $4))}eo;
          # Add links to reassigned packages
          $output =~ s{(Bug reassigned from package \`)([^\']+)(' to \`)([^\']+)(')}
          {$1.q(<a href=").pkgurl($2).qq(">$2</a>).$3.q(<a href=").pkgurl($4).qq(">$4</a>).$5}eo;