whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: More exceptions
Date Fri, 08 Mar 2019 11:11:36 GMT
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 2ebbad2  More exceptions
2ebbad2 is described below

commit 2ebbad28da9c27bf2af9e5599b39f0e788bed221
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Mar 8 11:11:35 2019 +0000

    More exceptions
---
 tools/check_auth.rb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/check_auth.rb b/tools/check_auth.rb
index 80d34e5..98bb7db 100755
--- a/tools/check_auth.rb
+++ b/tools/check_auth.rb
@@ -5,9 +5,11 @@
 # - name agrees with ldap query
 # - incorrect alias reference
 
+# allowable non-LDAP names
 ROLE_NAMES =
   %w(buildbot comdev_role projects_role spamassassin_role svn-role acrequser whimsysvn apezmlm
puppetsvn apsiteread apsecmail apezmlm smtpd svn rptremind comdev-svn openejb-tck staff
-  sk clr uli nick jim upayavira cpluchino mostarda
+  sk clr uli nick jim upayavira cpluchino mostarda druggeri
+  svn-site-role
 )
 
 DIR = ARGV.first || '/srv/git/infrastructure-puppet/modules/subversion_server/files/authorization'
@@ -17,6 +19,7 @@ def parse(file)
   section=''
   names=Hash.new(0)
   IO.foreach(file) { |x|
+    x.chomp!
     next if x =~ /^(#| *$)/
     section='groups' and next if x =~ /^\[groups\]$/
     section='paths'  and next if x =~ /^\[\/\]$/
@@ -44,7 +47,7 @@ def parse(file)
         next
       end
     elsif section == 'paths'
-      next if x =~ /^\[((asf:|infra:|private:)?\/\S*)\]$/ # [/path]
+      next if x =~ /^\[((asf:|infra:|private:|bigdata:)?\/\S*)\]$/ # [/path]
       if x =~ /^(?:@(\S+)|\*|(\S+)) *= *r?w? *$/
         if $1
           puts "Undefined name: '#{$1}' in #{x}" unless names.has_key?($1)


Mime
View raw message