mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-09 22:36:14 +01:00
osc sr: Do not error out on using an alias to apiurl
This commit is contained in:
parent
fbde8fc256
commit
119ca682de
@ -1397,7 +1397,7 @@ class Osc(cmdln.Cmdln):
|
||||
p = core.Package(os.curdir)
|
||||
src_project = p.prjname
|
||||
src_package = p.name
|
||||
if self.options.apiurl and self.options.apiurl != p.apiurl:
|
||||
if p.apiurl != apiurl:
|
||||
print('The apiurl for the working copy of this package is %s' % p.apiurl)
|
||||
print('You cannot use this command with the -A %s option.' % self.options.apiurl)
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user