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 38856aaf Allow for missing config file
38856aaf is described below

commit 38856aaf45b2d8ee3fe759dff0d0248efd18e38b
Author: Sebb <[email protected]>
AuthorDate: Fri Aug 23 22:53:05 2024 +0100

    Allow for missing config file
---
 lib/whimsy/asf/mail.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/mail.rb b/lib/whimsy/asf/mail.rb
index 944917f4..b5d201df 100644
--- a/lib/whimsy/asf/mail.rb
+++ b/lib/whimsy/asf/mail.rb
@@ -259,11 +259,11 @@ module ASF
       if not @flags or File.mtime(@list_flags) != @flags_mtime
         lists = []
         File.open(@list_flags).each do |line|
-          if line.match(/^F:-([a-zA-Z]{26}) (\S+) (\S+)/)
+          if line.match(/(?:^F:-([a-zA-Z]{26}) )?(\S+) (\S+)/)
             flags, dom, list = $1, $2, $3
             next if list =~ /^infra-[a-z]$/ or (dom == 'incubator' and list == 
'infra-dev')
 
-            lists << [dom, list, flags]
+            lists << [dom, list, flags || '']
           else
             raise "Unexpected flags: #{line}"
           end

Reply via email to