You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by cp...@apache.org on 2021/06/08 14:58:33 UTC

[solr] branch main updated: Fix 8.9.0 < 8.10.0 comparison in smokeTestRelease.py script. (#2509)

This is an automated email from the ASF dual-hosted git repository.

cpoerschke pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new e00ac7d  Fix 8.9.0 < 8.10.0 comparison in smokeTestRelease.py script. (#2509)
e00ac7d is described below

commit e00ac7deff9cc0e88713b9b6482d29311b1c22f5
Author: Christine Poerschke <cp...@apache.org>
AuthorDate: Tue Jun 8 15:44:59 2021 +0100

    Fix 8.9.0 < 8.10.0 comparison in smokeTestRelease.py script. (#2509)
---
 dev-tools/scripts/smokeTestRelease.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py
index 8d712df..eca6e65 100755
--- a/dev-tools/scripts/smokeTestRelease.py
+++ b/dev-tools/scripts/smokeTestRelease.py
@@ -448,7 +448,7 @@ def versionToTuple(version, name):
     versionTuple = versionTuple[:-2] + ('100',)
   elif versionTuple[-1].lower()[:2] == 'rc':
     versionTuple = versionTuple[:-2] + (versionTuple[-1][2:],)
-  return versionTuple
+  return tuple(int(x) if x is not None and x.isnumeric() else x for x in versionTuple)
 
 
 reUnixPath = re.compile(r'\b[a-zA-Z_]+=(?:"(?:\\"|[^"])*"' + '|(?:\\\\.|[^"\'\\s])*' + r"|'(?:\\'|[^'])*')" \