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: Make sure KEYS link exists
Date Mon, 23 Mar 2020 10:36:55 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 1553f78  Make sure KEYS link exists
1553f78 is described below

commit 1553f785510f4c12af1d511f40f6d0c0f0586751
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Mar 23 10:36:48 2020 +0000

    Make sure KEYS link exists
---
 tools/download_check.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index 2ee2c71..7926914 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -322,12 +322,14 @@ def _checkDownloadPage(path, tlp, version)
   expurlre = %r{^https://((www\.)?apache\.org/dist|downloads\.apache\.org)/(incubator/)?#{tlp}/KEYS$}
   keys = links.select{|h,v| h =~ expurlre}
   if keys.size >= 1
+    keyurl = keys.first.first
     keytext = keys.first[1]
     if keytext.strip == 'KEYS'
         I 'Found KEYS link'
     else
         W "Found KEYS: '#{keytext}'"
     end
+    check_head(keyurl,:E, "200")
   else
     keys = links.select{|h,v| v.strip == 'KEYS' || v == 'KEYS file' || v == '[KEYS]'}
     if keys.size >= 1
@@ -342,6 +344,7 @@ def _checkDownloadPage(path, tlp, version)
           E "KEYS: expected: #{expurl}\n             actual: #{keyurl}"
         end
       end
+      check_head(keyurl,:E, "200")
     else
       E 'Could not find KEYS link'
     end


Mime
View raw message