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 fd8b8ca  Allow checking http://tlp.us|eu.apache.org
fd8b8ca is described below

commit fd8b8ca0c98becd683052d55780267cc2854d771
Author: Sebb <[email protected]>
AuthorDate: Mon Jan 13 16:16:36 2020 +0000

    Allow checking http://tlp.us|eu.apache.org
---
 tools/download_check.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index 8c0a3a9..de0bb13 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -525,7 +525,7 @@ def _checkDownloadPage(path, tlp, version)
 end
 
 def getTLP(url)
-  if url =~ %r{^https?://([^.]+)(\.incubator)?\.apache\.org/}
+  if url =~ %r{^https?://([^.]+)(\.incubator|\.us|\.eu)?\.apache\.org/}
      tlp = $1
      tlp = 'httpcomponents' if tlp == 'hc'
      tlp = 'jspwiki' if tlp == 'jspwiki-wiki' # 
https://jspwiki-wiki.apache.org/Wiki.jsp?page=Downloads
@@ -562,6 +562,8 @@ if __FILE__ == $0
   $NO_CHECK_LINKS = ARGV.delete '--nolinks'
   $ARCHIVE_CHECK = ARGV.delete '--archivecheck'
 
+  init
+
   version = ''
   if ARGV.size == 1
     url = ARGV[0]
@@ -572,8 +574,6 @@ if __FILE__ == $0
     version = ARGV[2] || ''
   end
 
-  init
-
   checkDownloadPage(url, tlp, version)
 
   # display the test results as text

Reply via email to