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/12/22 23:44:01 UTC

[whimsy] branch master updated: Allow for apache.org/dist => downloads

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 ee18694  Allow for apache.org/dist => downloads
ee18694 is described below

commit ee186940be858face331a2b0bdf520d828c9b76d
Author: Sebb <se...@apache.org>
AuthorDate: Wed Dec 22 23:43:23 2021 +0000

    Allow for apache.org/dist => downloads
---
 tools/download_check.rb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index b4163e5..e73ff16 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -605,7 +605,12 @@ def _checkDownloadPage(path, tlp, version)
           I "Skipping artifact hash #{h}"
         else
           uri, _code, _response = check_head_3(h, :E) # log
-          W "Redirected hash: #{uri} != #{h}" unless uri.to_s == h
+          unless uri.to_s == h
+            h1 = h.sub(%r{//(www\.)?apache\.org/dist/}, '//downloads.apache.org/')
+            unless uri.to_s == h1
+              W "Redirected hash: #{h} => #{uri}"
+            end
+          end
         end
       else
         # will have been reported by check_hash_loc