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 a07de6f Only warn for archived hash names
a07de6f is described below
commit a07de6f74c2b50854bc596751cb1996efa4461fb
Author: Sebb <[email protected]>
AuthorDate: Thu Feb 24 17:19:49 2022 +0000
Only warn for archived hash names
---
tools/download_check.rb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tools/download_check.rb b/tools/download_check.rb
index 40f2405..e9bb2b2 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -572,7 +572,11 @@ def _checkDownloadPage(path, tlp, version)
if t == 'Download' # MXNet
W "Mismatch: #{h} and '#{t}'"
elsif not %w{checksum Hash}.include? t
- E "Mismatch: #{h} and '#{t}'"
+ if h =~ %r{^https?://archive\.apache\.org/dist/} # only warn for
archives
+ W "Mismatch: #{h} and '#{t}'"
+ else
+ E "Mismatch: #{h} and '#{t}'"
+ end
end
end
end