Permalink
Browse files

- use right apiurl on "osc meta $KIND" command (bnc#640770)

  • Loading branch information...
1 parent 6bfa5b0 commit c7447101457380a19ad58a5815d205ab11c81cd0 @adrianschroeter adrianschroeter committed Apr 2, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 osc/commandline.py
View
@@ -602,8 +602,6 @@ def do_meta(self, subcmd, opts, *args):
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 @@ def do_meta(self, subcmd, opts, *args):
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' ]:

0 comments on commit c744710

Please sign in to comment.