]> git.donarmstrong.com Git - debbugs.git/commitdiff
* Include bugs which affect packages in the default list of bugs displayed
authorDon Armstrong <don@donarmstrong.com>
Fri, 24 Jul 2009 11:04:55 +0000 (04:04 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 24 Jul 2009 11:04:55 +0000 (04:04 -0700)
cgi/pkgreport.cgi

index 580dbf29989569bb36dc3d5c439a727d8e05f096..82382e8ff76aa31af9800f03e0279df749aaada1 100755 (executable)
@@ -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}";
 }