From: Don Armstrong <don@volo>
Date: Mon, 19 Mar 2007 01:59:04 +0000 (-0700)
Subject: add back in the old method of pulling maintainers for empty maint
X-Git-Tag: release/2.6.0~568^2
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6ab917dc78e91743c8f25f3f3f26d9c3b1a257d9;p=debbugs.git

add back in the old method of pulling maintainers for empty maint
---

diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi
index d78bb927..26d5f80a 100755
--- a/cgi/pkgreport.cgi
+++ b/cgi/pkgreport.cgi
@@ -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";