1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 05:08:42 +02:00

Fix check_store_version in project store

This commit is contained in:
2024-06-30 09:49:29 +02:00
parent 8f634225c9
commit 9d3ba5bc3f

View File

@@ -339,7 +339,10 @@ def check_store_version(dir):
with open(versionfile) as f:
v = f.read().strip()
except:
v = ''
if is_project_dir(dir):
v = '1.0'
else:
v = ''
if v == '':
msg = f'Error: "{os.path.abspath(dir)}" is not an osc package working copy.'