use revision number for appveyor id

This commit is contained in:
Tomas Groth 2016-11-29 22:08:32 +01:00
parent 1bb2e9e278
commit bbda32b949

View File

@ -72,7 +72,7 @@ def get_version():
if code != 0:
raise Exception('Error running bzr log')
latest = output.decode('utf-8').split(':')[0]
version_string = latest == revision and tag or '%s-bzr%s' % (tag, latest)
version_string = latest == revision and tag or 'r%s' % latest
# Save decimal version in case we need to do a portable build.
version = latest == revision and tag or '%s.%s' % (tag, latest)
return version_string, version