1
0
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:
Daniel Mach 2022-10-05 11:55:17 +02:00
parent fbde8fc256
commit 119ca682de

View File

@ -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)