X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=cgi%2Fpkgreport.cgi;h=82382e8ff76aa31af9800f03e0279df749aaada1;hb=f20854286ee366a483dbfd7edd9857e28f9b6df3;hp=580dbf29989569bb36dc3d5c439a727d8e05f096;hpb=fa8b9d29037e6c5496fad824037c280034716fb3;p=debbugs.git diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index 580dbf2..82382e8 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -360,6 +360,18 @@ my $title = $gBugs.' '.join(' and ', map {/ or /?"($_)":$_} @title); usertags => \%ut, ); +# shove in bugs which affect this package if there is a package or a +# source given (by default), but no affects options given +if (not exists $param{affects} and not exists $param{noaffects} and + (exists $param{source} or + exists $param{package})) { + push @bugs, get_bugs((map {exists $param{$_}?($_ =~ /^(?:package|source)$/?'affects':$_,$param{$_}):()} + grep {$_ ne 'newest'} + keys %package_search_keys, 'archive'), + usertags => \%ut, + ); +} + if (defined $param{version}) { $title .= " at version $param{version}"; }