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 f0cec285 Allow for // in pulsar
f0cec285 is described below
commit f0cec28532f41f6c32d17c857fdbef6ec25deabc
Author: Sebb <[email protected]>
AuthorDate: Tue Apr 19 11:20:23 2022 +0100
Allow for // in pulsar
---
tools/download_check.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/download_check.rb b/tools/download_check.rb
index 2b54f4fa..0b60e070 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -249,7 +249,8 @@ def check_hash_loc(h, tlp)
if h =~
%r{^(https?)://(?:(archive|www)\.)?apache\.org/dist/(?:incubator/)?#{tlpQE}/.*?([^/]+)\.(\w{3,6})$}
WE "HTTPS! #{h}" unless $1 == 'https'
return $2 || '', $3, $4 # allow for no host before apache.org
- elsif h =~
%r{^(https?)://(downloads)\.apache\.org/(?:incubator/)?#{tlpQE}/.*?([^/]+)\.(\w{3,6})$}
+# Allow // after .org (pulsar)
+ elsif h =~
%r{^(https?)://(downloads)\.apache\.org//?(?:incubator/)?#{tlpQE}/.*?([^/]+)\.(\w{3,6})$}
WE "HTTPS! #{h}" unless $1 == 'https'
return $2, $3, $4
#
https://repo1.maven.org/maven2/org/apache/shiro/shiro-spring/1.1.0/shiro-spring-1.1.0.jar.asc