13
0

Py3 compatible build-stack version parser

This commit is contained in:
Robin Gareus 2022-09-14 00:05:20 +02:00
parent 17b5acc38d
commit 80ef73f48b

View File

@ -282,7 +282,7 @@ def create_stored_revision():
def get_depstack_rev(depstack_root): def get_depstack_rev(depstack_root):
try: try:
with open(depstack_root + '/../.vers', 'r') as f: with open(depstack_root + '/../.vers', 'r') as f:
return f.readline().decode('utf-8').strip()[:7] return f.readline().strip()[:7]
except IOError: except IOError:
return '-unknown-' return '-unknown-'