1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-14 06:17:18 +01:00

Make error message in check_store_version() more generic to work for both projects and packages

This commit is contained in:
Daniel Mach 2024-07-02 08:46:18 +02:00
parent 865913a65d
commit 30a33b91f1

View File

@ -342,7 +342,7 @@ def check_store_version(dir):
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 working copy.'
if os.path.exists(os.path.join(dir, '.svn')):
msg = msg + '\nTry svn instead of osc.'
raise oscerr.NoWorkingCopy(msg)