1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-25 22:36:13 +01:00

Merge pull request #1590 from andreas-schwab/master

Don't check for store version in project store
This commit is contained in:
Daniel Mach 2024-07-02 13:42:24 +02:00 committed by GitHub
commit 9e56fdaa52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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