mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06: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:
commit
6f45a09f3a
@ -1397,7 +1397,7 @@ class Osc(cmdln.Cmdln):
|
|||||||
p = Package(os.curdir)
|
p = Package(os.curdir)
|
||||||
src_project = p.prjname
|
src_project = p.prjname
|
||||||
src_package = p.name
|
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('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)
|
print('You cannot use this command with the -A %s option.' % self.options.apiurl)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user