handle case of version string having no '+' (#1402)
This commit is contained in:
parent
b5de577c28
commit
9f86eef2b9
@ -467,7 +467,7 @@ def getVersionStrings(pkg):
|
||||
version = initVersion
|
||||
# if git says this is a modified branch, add local version information
|
||||
if gitVersion is not None:
|
||||
_, local = gitVersion.split('+')
|
||||
_, _, local = gitVersion.partition('+')
|
||||
if local != '':
|
||||
version = version + '+' + local
|
||||
sys.stderr.write("Detected git commit; "
|
||||
|
Loading…
Reference in New Issue
Block a user