]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2000-10-02 01:50:35 by ajt]
authorajt <>
Mon, 2 Oct 2000 08:50:35 +0000 (00:50 -0800)
committerajt <>
Mon, 2 Oct 2000 08:50:35 +0000 (00:50 -0800)
Use the CGI scripts for maintainer URLs
Find maintainers based on the Maintainers file and the package name, not
  direct from the index file

cgi/common.pl

index 7a27c371af3d64f155d88ba71821c722c44afe33..3988d5b5be6e97dabc396e15c83551e82752070b 100644 (file)
@@ -97,8 +97,10 @@ sub htmlindexentrystatus {
 
 sub mainturl {
     my $ref = shift;
-    return sprintf "http://%s/db/ma/l%s.html",
-       $debbugs::gWebDomain, maintencoded($ref);
+    my $params = "maintenc=" . maintencoded($ref);
+    $params .= "&archive=yes" if ($common_archive);
+    $params .= "&repeatmerged=yes" if ($common_repeatmerged);
+    return $debbugs::gCGIDomain . "pkgreport.cgi" . "?" . $params;
 }
 
 sub pkgurl {
@@ -197,9 +199,10 @@ sub htmlizebugs {
 
 sub maintbugs {
     my $maint = shift;
+    my %maintainers = getmaintainers();
     my $chk = sub {
         my %d = @_;
-        ($maintemail = $d{"maint"}) =~ s/\s*\(.*\)\s*//;
+        ($maintemail = $maintainers{$d{"pkg"}}) =~ s/\s*\(.*\)\s*//;
         if ($maintemail =~ m/<(.*)>/) { $maintemail = $1 }
         return $maintemail eq $maint;
     };
@@ -208,7 +211,8 @@ sub maintbugs {
 
 sub maintencbugs {
     my $maint = shift;
-    return getbugs(sub {my %d=@_; return maintencoded($d{"maint"}) eq $maint});
+    my %maintainers = getmaintainers();
+    return getbugs(sub {my %d=@_; return maintencoded($maintainers{$d{"pkg"}}) eq $maint});
 }
 
 sub pkgbugs {