mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
- use right apiurl on "osc meta $KIND" command (bnc#640770)
This commit is contained in:
parent
6bfa5b0c31
commit
c744710145
@ -602,8 +602,6 @@ class Osc(cmdln.Cmdln):
|
||||
cmd = args[0]
|
||||
del args[0]
|
||||
|
||||
apiurl = self.get_api_url()
|
||||
|
||||
if cmd in ['pkg']:
|
||||
min_args, max_args = 0, 2
|
||||
elif cmd in ['pattern']:
|
||||
@ -620,6 +618,10 @@ class Osc(cmdln.Cmdln):
|
||||
if len(args) > max_args:
|
||||
raise oscerr.WrongArgs('Too many arguments.')
|
||||
|
||||
apiurl = self.get_api_url()
|
||||
if len(args) < 2:
|
||||
apiurl = store_read_apiurl(os.curdir)
|
||||
|
||||
# specific arguments
|
||||
attributepath = []
|
||||
if cmd in ['pkg', 'prj', 'prjconf' ]:
|
||||
|
Loading…
Reference in New Issue
Block a user