mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-02 09:46:16 +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]
|
cmd = args[0]
|
||||||
del args[0]
|
del args[0]
|
||||||
|
|
||||||
apiurl = self.get_api_url()
|
|
||||||
|
|
||||||
if cmd in ['pkg']:
|
if cmd in ['pkg']:
|
||||||
min_args, max_args = 0, 2
|
min_args, max_args = 0, 2
|
||||||
elif cmd in ['pattern']:
|
elif cmd in ['pattern']:
|
||||||
@ -620,6 +618,10 @@ class Osc(cmdln.Cmdln):
|
|||||||
if len(args) > max_args:
|
if len(args) > max_args:
|
||||||
raise oscerr.WrongArgs('Too many arguments.')
|
raise oscerr.WrongArgs('Too many arguments.')
|
||||||
|
|
||||||
|
apiurl = self.get_api_url()
|
||||||
|
if len(args) < 2:
|
||||||
|
apiurl = store_read_apiurl(os.curdir)
|
||||||
|
|
||||||
# specific arguments
|
# specific arguments
|
||||||
attributepath = []
|
attributepath = []
|
||||||
if cmd in ['pkg', 'prj', 'prjconf' ]:
|
if cmd in ['pkg', 'prj', 'prjconf' ]:
|
||||||
|
Loading…
Reference in New Issue
Block a user