From: Don Armstrong Date: Thu, 6 Jul 2006 00:37:24 +0000 (-0700) Subject: * link to blocking bugs in bugreport.cgi X-Git-Tag: release/2.6.0~604^2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4595b85d3dabc3043c35934be94367c70aa17008;p=debbugs.git * link to blocking bugs in bugreport.cgi --- diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index 64e367a5..f61ad084 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -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($2).$3.q($4).$5}eo;