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 a6c1af18 Allow for missing site
a6c1af18 is described below

commit a6c1af18e66a446a0979302a281f015611934add
Author: Sebb <[email protected]>
AuthorDate: Thu Aug 29 00:07:00 2024 +0100

    Allow for missing site
---
 tools/download_check.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index 258f88a7..d6255427 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -334,10 +334,14 @@ URL2TLP['jspwiki-wiki'] = 'jspwiki' # 
https://jspwiki-wiki.apache.org/Wiki.jsp?p
 URL2TLP['xmlbeans'] = 'poi' # xmlbeans now being maintained by POI
 PMCS = Set.new # is this a TLP?
 ASF::Committee.pmcs.map do |p|
-  site = p.site[%r{//(.+?)\.apache\.org}, 1]
   name = p.name
-  URL2TLP[site] = name unless site == name
   PMCS << name
+  if p.site
+    site = p.site[%r{//(.+?)\.apache\.org}, 1]
+    URL2TLP[site] = name unless site == name
+  else
+    Wunderbar.warn "PMC has no site: #{name}"
+  end
 end
 
 # Convert text reference to extension

Reply via email to