Fixed deconde on deemix-pyweb spec file

This commit is contained in:
RemixDev 2020-09-08 20:09:16 +02:00
parent 431cd7c7f9
commit ff700b999a

View file

@ -4,7 +4,7 @@ from datetime import date
import subprocess
today = date.today().strftime("%Y.%m.%d")
commit = str(subprocess.check_output(['git', 'rev-parse', 'HEAD'])[:10])
commit = subprocess.check_output(['git', 'rev-parse', 'HEAD'])[:10].decode("utf-8")
version = f"{today}-{commit}"
with open('version.txt', 'w') as f:
f.write(version)