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 e89be0b Allow for closer.cgi redirect to archive server
e89be0b is described below
commit e89be0b130935e54dfbfb7cb967b188102272449
Author: Sebb <[email protected]>
AuthorDate: Mon Dec 30 16:06:45 2019 +0000
Allow for closer.cgi redirect to archive server
---
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 923538e..bcb49bc 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -457,7 +457,8 @@ def _checkDownloadPage(path, tlp, version)
if bdy
lks = get_links(bdy)
lks.each do |l,t|
- if l.end_with? name
+ # Don't want to match archive server (closer.cgi defaults to it
if file is not found)
+ if l.end_with?(name) and l !~ %r{//archive\.apache\.org/}
path = l
break
end