]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2000-10-02 02:32:35 by ajt]
authorajt <>
Mon, 2 Oct 2000 09:32:35 +0000 (01:32 -0800)
committerajt <>
Mon, 2 Oct 2000 09:32:35 +0000 (01:32 -0800)
The [...]'ed field in index files is now the submitter.
You have to read the maintainers file and associate with the bug's package
  if you want to work out a bug's maintainer.
(This change just updates some variable names)

cgi/common.pl

index a9b1d9c7aae2fb77c935d52fe843eaab69fd0030..f3d45e527c6192136edb0410f2bc202265c55c74 100644 (file)
@@ -198,12 +198,12 @@ sub htmlizebugs {
 }
 
 sub submitterbugs {
-    my $maint = shift;
+    my $submitter = shift;
     my $chk = sub {
         my %d = @_;
-        ($maintemail = $d{"maint"}) =~ s/\s*\(.*\)\s*//;
-        if ($maintemail =~ m/<(.*)>/) { $maintemail = $1 }
-        return $maintemail eq $maint;
+        ($subemail = $d{"submitter"}) =~ s/\s*\(.*\)\s*//;
+        if ($subemail =~ m/<(.*)>/) { $subemail = $1 }
+        return $subemail eq $submitter;
     };
     return getbugs($chk);
 }
@@ -244,7 +244,7 @@ sub getbugs {
     while(<I>) 
     {
         if (m/^(\S+)\s+(\d+)\s+(\S+)\s+(\d+)\s+\[\s*([^]]*)\s*\]\s+(\w+)\s+(.+)$/) {
-            if ($bugfunc->(pkg => $1, bug => $2, maint => $5,
+            if ($bugfunc->(pkg => $1, bug => $2, submitter => $5,
                           severity => $6, title => $7))
            {
                push (@result, $2);