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: Allow for -bin-scala... suffices
Date Tue, 19 Jan 2021 12:37:50 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 62ab45e  Allow for -bin-scala... suffices
62ab45e is described below

commit 62ab45e2eecc6230e81c7daf6c7f4fe2f910b4a4
Author: Sebb <sebb@apache.org>
AuthorDate: Tue Jan 19 12:37:39 2021 +0000

    Allow for -bin-scala... suffices
---
 tools/download_check.rb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index c2a3bbd..d2d545d 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -452,9 +452,11 @@ def _checkDownloadPage(path, tlp, version)
                 ver = $2
                 # does version have a suffix which is really part of the name?
                 if ver =~ %r{^(\d+(?:\.\d+)+)(-.+)$}
-                  if %w(-bin -src).include? $2
-                    ver = $1
-                    pfx = pfx + $2
+                  ver1 = $1 # save result
+                  ver2 = $2
+                  if %w(-bin -src).include? $2 or $2 =~ %r{^-bin-} # allow for -bin-scala...
+                    ver = ver1
+                    pfx = pfx + ver2
                   end
                 end
                 $versions[ver][pfx] << ext


Mime
View raw message