]> git.donarmstrong.com Git - debbugs.git/commitdiff
properly use src:package when dealing with source packages and their affects
authorDon Armstrong <don@donarmstrong.com>
Sun, 3 Jan 2010 09:44:08 +0000 (01:44 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sun, 3 Jan 2010 09:44:08 +0000 (01:44 -0800)
cgi/pkgreport.cgi

index 82382e8ff76aa31af9800f03e0279df749aaada1..8b733497728f8cd921fdc882dd60d96d4a16e5cb 100755 (executable)
@@ -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,