You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/01/19 12:37:50 UTC

[whimsy] branch master updated: Allow for -bin-scala... suffices

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 <se...@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