mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-04 22:53:42 +02:00
Make error message in check_store_version() more generic to work for both projects and packages
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user