1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00

Merge pull request #1160 from dmach/submitrequest-allow-aliases

osc sr: Do not error out on using an alias to apiurl
This commit is contained in:
Daniel Mach 2022-10-05 13:58:25 +02:00 committed by GitHub
commit 6f45a09f3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1397,7 +1397,7 @@ class Osc(cmdln.Cmdln):
p = 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)