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 ae4561b  SOLR uses 'v' prefix to version numbers
ae4561b is described below

commit ae4561b820b49b6a589ce160c651047d30518588
Author: Sebb <[email protected]>
AuthorDate: Tue Sep 14 15:15:08 2021 +0100

    SOLR uses 'v' prefix to version numbers
---
 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 9d4f345..3f8c801 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -493,7 +493,7 @@ def _checkDownloadPage(path, tlp, version)
           stem = base[0..-(ext.size + 2)]
           # version must include '.', e.g. xxx-m.n.oyyy
 #                 Apache_OpenOffice-SDK_4.1.10_Linux_x86-64_install-deb_en-US
-          if stem =~ %r{^.+?[-_](\d+(?:\.\d+)+)(.*)$}
+          if stem =~ %r{^.+?[-_]v?(\d+(?:\.\d+)+)(.*)$}
             # $1 = version
             # $2 any suffix, e.g. -bin, -src (or other)
             ver = $1 # main version
@@ -505,7 +505,7 @@ def _checkDownloadPage(path, tlp, version)
             end
             $versions[ver][stem] << ext
           else
-            W "Cannot parse #{base} for version"
+            W "Cannot parse #{stem} for version"
           end
         end
       end

Reply via email to