whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Allow for SHA as generic hash indicator
Date Wed, 20 May 2020 11:00:26 GMT
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 8f8f80d  Allow for SHA as generic hash indicator
8f8f80d is described below

commit 8f8f80dd7f55f892ecc8858d172c190a79b57d7b
Author: Sebb <sebb@apache.org>
AuthorDate: Wed May 20 12:00:19 2020 +0100

    Allow for SHA as generic hash indicator
---
 tools/download_check.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index 6d21725..e44d703 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -462,6 +462,7 @@ def _checkDownloadPage(path, tlp, version)
         tmp = text2ext(t)
         next if ext == tmp # i.e. link is just the type or [TYPE]
         next if ext == 'sha' and tmp == 'sha1' # historic
+        next if (ext == 'sha256' or ext == 'sha512') and t == 'SHA' # generic
         if not base == t and not t == 'checksum'
             E "Mismatch: #{h} and '#{t}'"
         end


Mime
View raw message