You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/07/23 16:40:48 UTC
[whimsy] branch master updated: Allow for https://apache.org/dist/
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 5d603aa Allow for https://apache.org/dist/
5d603aa is described below
commit 5d603aac0c7e3678b3074f01814113148627f69c
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jul 23 17:40:39 2021 +0100
Allow for https://apache.org/dist/
---
tools/download_check.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/download_check.rb b/tools/download_check.rb
index 7c05a30..f7e61a8 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -232,7 +232,7 @@ def check_hash_loc(h,tlp)
tlpQE = "(?:tubemq|inlong)" if tlp == 'inlong' # renamed
if h =~ %r{^(https?)://(?:(archive|www)\.)?apache\.org/dist/(?:incubator/)?#{tlpQE}/.*?([^/]+)\.(\w{3,6})$}
WE "HTTPS! #{h}" unless $1 == 'https'
- return $2,$3,$4
+ return $2||'',$3,$4 # allow for no host before apache.org
elsif h =~ %r{^(https?)://(downloads)\.apache\.org/(?:incubator/)?#{tlpQE}/.*?([^/]+)\.(\w{3,6})$}
WE "HTTPS! #{h}" unless $1 == 'https'
return $2,$3,$4