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/07/16 22:34:08 UTC

[whimsy] branch master updated: Detect source on maven

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 4fe3a8c  Detect source on maven
4fe3a8c is described below

commit 4fe3a8c2288277ae773be338059a246dcaec40a9
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jul 16 23:33:32 2021 +0100

    Detect source on maven
---
 tools/download_check.rb | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index 7cde947..330fd4e 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -600,17 +600,19 @@ def _checkDownloadPage(path, tlp, version)
             I "Ignoring archived artifact #{h}"
             next
         end
-      else
-        if $NOFOLLOW
-          I "Skipping artifact #{h}"
-          next
-        end
       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?://(www\.)?apache\.org/dist} or h =~ %r{https?://downloads.apache.org/}
         E "Must use mirror system #{h}"
         next
+      elsif h =~ %r{https?://repo\d\.maven\.org/.+(-src|-source)}
+        E "Must use mirror system for source #{h}"
+        next
+      end
+      if $NOFOLLOW
+        I "Skipping artifact #{h}"
+        next
       end
       res = check_head(h, :E, false) # nolog
       next unless res