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 d0aa149  Fix up downloads check
d0aa149 is described below

commit d0aa149dae6b02373ec5df020a4e042149bc745e
Author: Sebb <[email protected]>
AuthorDate: Fri Jul 10 22:47:13 2020 +0100

    Fix up downloads check
---
 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 f336709..2d91251 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -533,7 +533,7 @@ def _checkDownloadPage(path, tlp, version)
       end
       # 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/}
+      if h =~ %r{https?://(www\.)?apache\.org/dist} or h =~ 
%r{https?://downloads.apache.org/}
         E "Must use mirror system #{h}"
         next
       end

Reply via email to