]> git.donarmstrong.com Git - debbugs.git/commitdiff
add back in the old method of pulling maintainers for empty maint
authorDon Armstrong <don@volo>
Mon, 19 Mar 2007 01:59:04 +0000 (18:59 -0700)
committerDon Armstrong <don@volo>
Mon, 19 Mar 2007 01:59:04 +0000 (18:59 -0700)
cgi/pkgreport.cgi

index d78bb92709dc8c6337e1433b6e2bbdef3ab9b46e..26d5f80ad47a9007e86f3ab0b311b18afabbf961 100755 (executable)
@@ -268,7 +268,17 @@ if (defined $pkg) {
   add_user($maint);
   $title = "maintainer $maint";
   $title .= " in $dist" if defined $dist;
-  @bugs = get_bugs(maint=>[split /,/,$maint]);
+  if ($maint eq "") {
+       my %maintainers = %{getmaintainers()};
+       @bugs = @{getbugs(sub {my %d=@_;
+                             foreach my $try (splitpackages($d{"pkg"})) {
+                                  return 1 if !getparsedaddrs($maintainers{$try});
+                             }
+                             return 0;
+                        })};
+  } else {
+       @bugs = get_bugs(maint=>[split /,/,$maint]);
+  }
 } elsif (defined $maintenc) {
   my %maintainers = %{getmaintainers()};
   $title = "encoded maintainer $maintenc";