handle case of version string having no '+' (#1402)

This commit is contained in:
Ogi Moore 2020-10-17 22:22:29 -07:00 committed by GitHub
parent b5de577c28
commit 9f86eef2b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -467,7 +467,7 @@ def getVersionStrings(pkg):
version = initVersion version = initVersion
# if git says this is a modified branch, add local version information # if git says this is a modified branch, add local version information
if gitVersion is not None: if gitVersion is not None:
_, local = gitVersion.split('+') _, _, local = gitVersion.partition('+')
if local != '': if local != '':
version = version + '+' + local version = version + '+' + local
sys.stderr.write("Detected git commit; " sys.stderr.write("Detected git commit; "