Allow checking http://tlp.us|eu.apache.org
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 @@
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 @@
$NO_CHECK_LINKS = ARGV.delete '--nolinks'
$ARCHIVE_CHECK = ARGV.delete '--archivecheck'
+ init
+
version = ''
if ARGV.size == 1
url = ARGV[0]
@@ -572,8 +574,6 @@
version = ARGV[2] || ''
end
- init
-
checkDownloadPage(url, tlp, version)
# display the test results as text