Fix packager
This commit is contained in:
parent
0d163a1ce2
commit
5c04de6f39
4
package/merge_packages.py
Normal file → Executable file
4
package/merge_packages.py
Normal file → Executable file
@ -36,7 +36,11 @@ def pkgVersionNormalized(versionString):
|
|||||||
verParts = re.split('\.|-rc', verStr, flags=re.IGNORECASE)
|
verParts = re.split('\.|-rc', verStr, flags=re.IGNORECASE)
|
||||||
|
|
||||||
if len(verParts) == 3:
|
if len(verParts) == 3:
|
||||||
|
if (sys.version_info > (3, 0)): # Python 3
|
||||||
|
verStr = str(versionString) + '-rc' + str(sys.maxsize)
|
||||||
|
else: # Python 2
|
||||||
verStr = str(versionString) + '-rc' + str(sys.maxint)
|
verStr = str(versionString) + '-rc' + str(sys.maxint)
|
||||||
|
|
||||||
elif len(verParts) != 4:
|
elif len(verParts) != 4:
|
||||||
print("pkgVersionNormalized WARNING: unexpected version format: {0})".format(verStr), file=sys.stderr)
|
print("pkgVersionNormalized WARNING: unexpected version format: {0})".format(verStr), file=sys.stderr)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user