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: Match on basename
Date Fri, 29 May 2020 12:09:56 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 607690c  Match on basename
607690c is described below

commit 607690cf34770057d9290af79e328d18cda2c66c
Author: Sebb <sebb@apache.org>
AuthorDate: Fri May 29 13:09:33 2020 +0100

    Match on basename
---
 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 edd0500..403fb72 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -432,7 +432,7 @@ def _checkDownloadPage(path, tlp, version)
             vercheck[base] = [h =~ %r{^https?://archive.apache.org/} ? 'archive' : 'live']
         end
         # Text must include a '.' (So we don't check 'Source')
-        if t.include?('.') and not base == t.strip.downcase
+        if t.include?('.') and not base == File.basename(t.strip.downcase)
           # text might be short version of link
           tmp = t.strip.sub(%r{.*/},'').downcase # 
           if base == tmp


Mime
View raw message