From 6ab917dc78e91743c8f25f3f3f26d9c3b1a257d9 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 18 Mar 2007 18:59:04 -0700 Subject: [PATCH] add back in the old method of pulling maintainers for empty maint --- cgi/pkgreport.cgi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index d78bb92..26d5f80 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"; -- 2.39.2