From 9d3ba5bc3f4cbc058587bb40b853ccb3155f922b Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 30 Jun 2024 09:49:29 +0200 Subject: [PATCH] Fix check_store_version in project store --- osc/obs_scm/store.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osc/obs_scm/store.py b/osc/obs_scm/store.py index 8c4a6a065..695d8e35b 100644 --- a/osc/obs_scm/store.py +++ b/osc/obs_scm/store.py @@ -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.'