Py3 compatible build-stack version parser
This commit is contained in:
parent
17b5acc38d
commit
80ef73f48b
2
wscript
2
wscript
@ -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-'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user