mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 18:26:15 +01:00
"osc results" calls "prjresults" when being in project dir.
This commit is contained in:
parent
2b419453bb
commit
e4fb64daba
@ -2624,6 +2624,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
apiurl = conf.config['apiurl']
|
apiurl = conf.config['apiurl']
|
||||||
if len(args) == 0:
|
if len(args) == 0:
|
||||||
wd = os.curdir
|
wd = os.curdir
|
||||||
|
if is_project_dir(wd):
|
||||||
|
opts.csv=0
|
||||||
|
opts.hide_legend=0
|
||||||
|
opts.name_filter=0
|
||||||
|
opts.status_filter=0
|
||||||
|
self.do_prjresults('prjresults', opts, *args);
|
||||||
|
sys.exit(0)
|
||||||
|
else:
|
||||||
project = store_read_project(wd)
|
project = store_read_project(wd)
|
||||||
package = store_read_package(wd)
|
package = store_read_package(wd)
|
||||||
apiurl = store_read_apiurl(wd)
|
apiurl = store_read_apiurl(wd)
|
||||||
@ -2644,6 +2652,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
print delim.join(func(apiurl, project, package, opts.last_build, opts.repo, opts.arch))
|
print delim.join(func(apiurl, project, package, opts.last_build, opts.repo, opts.arch))
|
||||||
|
|
||||||
|
# WARNING: this function is also called by do_results. You need to set a default there
|
||||||
|
# as well when adding a new option!
|
||||||
@cmdln.option('-q', '--hide-legend', action='store_true',
|
@cmdln.option('-q', '--hide-legend', action='store_true',
|
||||||
help='hide the legend')
|
help='hide the legend')
|
||||||
@cmdln.option('-c', '--csv', action='store_true',
|
@cmdln.option('-c', '--csv', action='store_true',
|
||||||
|
Loading…
Reference in New Issue
Block a user