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 44db254 Detect KEYS by URL
44db254 is described below
commit 44db25412626e1e9b3ea179ad5a2fbca8943627f
Author: Sebb <[email protected]>
AuthorDate: Tue Dec 8 13:18:12 2020 +0000
Detect KEYS by URL
---
tools/download_check.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/download_check.rb b/tools/download_check.rb
index 72d503a..985b350 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -387,7 +387,7 @@ def _checkDownloadPage(path, tlp, version)
end
check_head(keyurl,:E, "200", false, true)
else
- keys = links.select{|_h, v| v.strip == 'KEYS' || v == 'KEYS file' || v ==
'[KEYS]'}
+ keys = links.select{|h, v| h.end_with? 'KEYS' || v.strip == 'KEYS' || v ==
'KEYS file' || v == '[KEYS]'}
if keys.size >= 1
I 'Found KEYS link'
keyurl = keys.first.first