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 2020/07/10 11:38:04 UTC

[whimsy] branch master updated: Disallow downloads.a.o as well for release artifacts

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 45d3ddb  Disallow downloads.a.o as well for release artifacts
45d3ddb is described below

commit 45d3ddb2ccdbd248055422d245a7ce60ed3d0f00
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jul 10 12:37:54 2020 +0100

    Disallow downloads.a.o as well for release artifacts
---
 tools/download_check.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index 4fe48fc..f336709 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -531,7 +531,9 @@ def _checkDownloadPage(path, tlp, version)
             next
         end
       end
-      if h =~ %r{https?://(www\.)?apache\.org/dist}
+      # Ideally would like to check for use of closer.lua/.cgi, but some projects pre-populate the pages
+      # TODO: would it help to check host against mirrors.list?
+      if h =~ %r{https?://(downloads\.|www\.)?apache\.org/}
         E "Must use mirror system #{h}"
         next
       end