From: ajt <> Date: Mon, 22 Aug 2005 21:28:45 +0000 (-0800) Subject: [project @ 2005-08-22 14:28:45 by ajt] X-Git-Tag: release/2.6.0~652 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=05d089f0aa0be5bef7772f72fb230dc10371d78a;p=debbugs.git [project @ 2005-08-22 14:28:45 by ajt] add support for displaying blocking infromation to bugreport.cgi --- diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index 5955d499..1ba65466 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -274,6 +274,26 @@ if (@{$status{fixed_versions}}) { push @descstates, "Forwarded to ".maybelink($status{forwarded}); } + +my @blockedby= split(/ /, $status{blockedby}); +if (@blockedby && $status{"pending"} ne 'fixed' && ! length($status{done})) { + for my $b (@blockedby) { + my %s = %{getbugstatus($b)}; + next if $s{"pending"} eq 'fixed' || length $s{done}; + push @descstates, "Fix blocked by #$b: ".htmlsanit($s{subject}); + } +} + +my @blocks= split(/ /, $status{blocks}); +if (@blocks && $status{"pending"} ne 'fixed' && ! length($status{done})) { + for my $b (@blocks) { + my %s = %{getbugstatus($b)}; + next if $s{"pending"} eq 'fixed' || length $s{done}; + push @descstates, "Blocking fix for #$b: ".htmlsanit($s{subject}); + } +} + + $indexentry .= join(";\n
", @descstates) . ";\n
" if @descstates; $indexentry .= "\n";