Prefix sha to fix leading zeros being stripped

/dist.py:352: UserWarning: Normalizing '1.0.0a1402+0965847' to '1.0.0a1402+965847'
This commit is contained in:
khazhyk 2017-11-18 23:56:01 -08:00 committed by Rapptz
parent ceb82ecc7b
commit 54ea52c86f

View File

@ -32,7 +32,7 @@ if version.endswith(('a', 'b', 'rc')):
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
if out:
version += '+' + out.decode('utf-8').strip()
version += '+g' + out.decode('utf-8').strip()
except Exception:
pass