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 d246188 Relax rules
d246188 is described below
commit d24618876df8791fd534c58493748048ea072f89
Author: Sebb <[email protected]>
AuthorDate: Tue Apr 28 17:21:51 2020 +0100
Relax rules
---
tools/download_check.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/download_check.rb b/tools/download_check.rb
index be3748e..19f597e 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -265,7 +265,7 @@ ALIASES = {
def text2ext(txt)
# need to strip twice to handle ' [ asc ] '
# TODO: perhaps just remove all white-space?
- tmp = txt.downcase.strip.sub(%r{^\[(.+)\]$},'\1').sub('-','').sub(/
?checksum/,'').sub(/ \(tar\.gz\)| \(zip\)/,'').strip
+ tmp = txt.downcase.strip.sub(%r{^\[(.+)\]$},'\1').sub('-','').sub(/
?(digest|checksum)/,'').sub(/ \(tar\.gz\)| \(zip\)/,'').strip
ALIASES[tmp] || tmp
end
@@ -416,6 +416,7 @@ def _checkDownloadPage(path, tlp, version)
end
tmp = text2ext(t)
next if ext == tmp # i.e. link is just the type or [TYPE]
+ next if ext == 'sha' and tmp == 'sha1' # historic
if not base == t and not t == 'checksum'
E "Mismatch: #{h} and '#{t}'"
end