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 d4f2e60 Maven still uses sha1
d4f2e60 is described below
commit d4f2e60e3073a4da23b5cfb52104eca0af366c3f
Author: Sebb <[email protected]>
AuthorDate: Tue May 4 11:05:03 2021 +0100
Maven still uses sha1
---
tools/download_check.rb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/download_check.rb b/tools/download_check.rb
index b552ac4..b87e8ec 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -658,7 +658,7 @@ def _checkDownloadPage(path, tlp, version)
end
end
elsif h =~ %r{\.(md5|sha\d*)$}
- host,_,_ = check_hash_loc(h,tlp)
+ host, stem, _ext = check_hash_loc(h,tlp)
if $NOFOLLOW
I "Skipping deprecated hash #{h}"
next
@@ -674,7 +674,9 @@ def _checkDownloadPage(path, tlp, version)
I "Deprecated hash found #{h} #{t}; however #{lastmod} is older than
#{deprecated}"
# OK
else
- W "Deprecated hash found #{h} #{t} - do not use for current releases
#{lastmod}"
+ unless host == 'maven' and stem.end_with? '.jar' # Maven has yet to
be upgraded...
+ W "Deprecated hash found #{h} #{t} - do not use for current
releases #{lastmod}"
+ end
end
else
E "Unhandled host: #{host} in #{h}"