From 9e9371254528241edc90f34f8b0d7a08dd1830ca Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 3 Jan 2010 01:44:08 -0800 Subject: [PATCH] properly use src:package when dealing with source packages and their affects --- cgi/pkgreport.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index 82382e8..8b73349 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -365,7 +365,8 @@ my $title = $gBugs.' '.join(' and ', map {/ or /?"($_)":$_} @title); 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{$_}):()} + push @bugs, get_bugs((map {exists $param{$_}?($_ =~ /^(?:package|source)$/?'affects':$_, + ($_ eq 'source'?'src:'.$param{$_}:$param{$_})):()} grep {$_ ne 'newest'} keys %package_search_keys, 'archive'), usertags => \%ut, -- 2.39.2