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: Case should match; drop 'mirror for' prefix
Date Tue, 19 Jan 2021 16:34:13 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 a5cd50a  Case should match; drop 'mirror for' prefix
a5cd50a is described below

commit a5cd50a028af4277c32d3612c0f474b29ee17a8e
Author: Sebb <sebb@apache.org>
AuthorDate: Tue Jan 19 16:34:04 2021 +0000

    Case should match; drop 'mirror for' prefix
---
 tools/download_check.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index d2d545d..e62f73f 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -466,9 +466,9 @@ def _checkDownloadPage(path, tlp, version)
             end
         end
         # Text must include a '.' (So we don't check 'Source')
-        if t.include?('.') and not base == File.basename(t.strip.downcase)
+        if t.include?('.') and not base == File.basename(t.sub(/[Mm]irrors? for /, '').strip)
           # text might be short version of link
-          tmp = t.strip.sub(%r{.*/},'').downcase #
+          tmp = t.strip.sub(%r{.*/},'') #
           if base == tmp
             W "Mismatch?: #{h} and '#{t}'"
           elsif base.end_with? tmp


Mime
View raw message