allow frappy to run in readonly repo
do not write release version in this case
This commit is contained in:
+5
-3
@@ -55,9 +55,11 @@ def read_release_version():
|
||||
|
||||
|
||||
def write_release_version(version):
|
||||
with RELEASE_VERSION_FILE.open('w', encoding='utf-8') as f:
|
||||
f.write(f'{version}\n')
|
||||
|
||||
try:
|
||||
with RELEASE_VERSION_FILE.open('w', encoding='utf-8') as f:
|
||||
f.write(f'{version}\n')
|
||||
except OSError:
|
||||
pass # no write permission?
|
||||
|
||||
def get_version(abbrev=4):
|
||||
# determine the version from git and from RELEASE-VERSION
|
||||
|
||||
Reference in New Issue
Block a user