whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Allow for missing www. prefix and downloads.a.o
Date Mon, 02 Mar 2020 21:40:25 GMT
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 e296199  Allow for missing www. prefix and downloads.a.o
e296199 is described below

commit e296199210f7377110c60673ea5bf27db9f21261
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Mar 2 21:40:09 2020 +0000

    Allow for missing www. prefix and downloads.a.o
---
 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 a5546f5..a72b85e 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -365,7 +365,7 @@ def _checkDownloadPage(path, tlp, version)
   vercheck = Hash.new() # key = archive name, value = array of hash/sig
   links.each do |h,t|
     # Must occur before mirror check below
-    if h =~ %r{^https?://(?:archive|www)\.apache\.org/dist/(.+\.(asc|sha\d+|md5|sha))$}
+    if h =~ %r{^https?://(?:(?:archive\.|www\.)?apache\.org/dist|downloads\.apache.org)/(.+\.(asc|sha\d+|md5|sha))$}
         base = File.basename($1)
         ext = $2
         stem = base[0..-(2+ext.length)]


Mime
View raw message