This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new bfc712e  FIx up matching for non-standard lists
bfc712e is described below

commit bfc712ead9cead2370c5b5fb46a85c87f2f6a9e6
Author: Sebb <[email protected]>
AuthorDate: Wed Feb 9 16:55:12 2022 +0000

    FIx up matching for non-standard lists
---
 lib/whimsy/asf/mlist.rb | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/lib/whimsy/asf/mlist.rb b/lib/whimsy/asf/mlist.rb
index b57063f..788edfb 100644
--- a/lib/whimsy/asf/mlist.rb
+++ b/lib/whimsy/asf/mlist.rb
@@ -124,14 +124,14 @@ module ASF
     # helper function for matching against mod and subs entries
     # does the target mail_domain match the current list?
     def self.matches_list?(mail_domain, dom, list)
-        # normal tlp style (now also podlings):
-        #/home/apmail/lists/commons.apache.org/dev/mod
-        #Apache lists (e.g. some non-PMCs)
-        #/home/apmail/lists/apache.org/list/mod
-        return "#{mail_domain}.apache.org" == dom ||
-               (dom == 'apache.org' && 
-                (list == mail_domain || list.start_with?("#{mail_domain}-"))
-               )
+      # normal tlp style (now also podlings):
+      #/home/apmail/lists/commons.apache.org/dev/mod
+      #Apache lists (e.g. some non-PMCs)
+      #/home/apmail/lists/apache.org/list/mod
+      return "#{mail_domain}.apache.org" == dom ||
+              (dom == 'apache.org' &&
+              (list == mail_domain || list.start_with?("#{mail_domain}-"))
+              )
     end
 
     # for a mail domain, extract related lists and their moderators
@@ -245,7 +245,7 @@ module ASF
     def self.domain_lists(project, show_all)
       lists = {}
       list_types(show_all) do |dom, list, type|
-        if dom == "#{project}.apache.org"
+        if matches_list?(project, dom, list)
           lists["#{list}@#{dom}"] = type
         end
       end

Reply via email to