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/12/03 17:17:08 UTC
[whimsy] branch master updated: Ensure all hosts are checked for
deprecated hashes
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 763efc9 Ensure all hosts are checked for deprecated hashes
763efc9 is described below
commit 763efc9a355fae34e1194ea762a526a6ab6b24c3
Author: Sebb <se...@apache.org>
AuthorDate: Thu Dec 3 17:17:01 2020 +0000
Ensure all hosts are checked for deprecated hashes
---
tools/download_check.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/download_check.rb b/tools/download_check.rb
index cef9de4..cfca4c3 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -588,7 +588,8 @@ def _checkDownloadPage(path, tlp, version)
I "Skipping deprecated hash #{h}"
next
end
- if host == 'www' or host == ''
+ if host == 'www' or host == '' or host == 'downloads' or host == 'archive'
+ next unless $ARCHIVE_CHECK or host != 'archive'
res = check_head(h,:E, "200", false, true) # allow for redirect here
next unless res
lastmod = res['last-modified']
@@ -600,6 +601,8 @@ def _checkDownloadPage(path, tlp, version)
else
W "Deprecated hash found #{h} #{t} - do not use for current releases #{lastmod}"
end
+ else
+ E "Unhandled host: #{host} in #{h}"
end
elsif h =~ %r{/KEYS$} or t == 'KEYS'
# already handled