mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-26 04:02:11 +01:00
fix usage of correct api when calling "osc results" without parameters
This commit is contained in:
parent
dccc2d41cb
commit
9ef41fde95
@ -1903,6 +1903,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
"""
|
||||
|
||||
args = slash_split(args)
|
||||
apiurl = conf.config['apiurl']
|
||||
if len(args) == 0:
|
||||
wd = os.curdir
|
||||
project = store_read_project(wd)
|
||||
@ -1913,7 +1914,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
elif len(args) > 2:
|
||||
raise oscerr.WrongArgs('Too many arguments (required none or two)')
|
||||
else:
|
||||
apiurl = conf.config['apiurl']
|
||||
project = args[0]
|
||||
package = args[1]
|
||||
|
||||
@ -1924,7 +1924,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
func = show_results_meta
|
||||
delim = ''
|
||||
|
||||
apiurl = conf.config['apiurl']
|
||||
print delim.join(func(apiurl, project, package, opts.last_build, opts.repo, opts.arch))
|
||||
|
||||
@cmdln.option('-q', '--hide-legend', action='store_true',
|
||||
|
Loading…
x
Reference in New Issue
Block a user