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:
parent
865913a65d
commit
30a33b91f1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user