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

[lucene] 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/lucene.git


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

commit 1ec2a715a2115d072f65bc9a26cdf8bb133387ad
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"|'(?:\\'|[^'])*')" \