1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-08 10:00:05 +02:00

fix and rename osc pr --show-non-building

fix osc pr --show-non-building to actually do what it is supposed to
do. Change default to not do filtering by renaming the option to
--hide-disabled
This commit is contained in:
Ludwig Nussel
2010-08-04 16:44:51 +02:00
parent 40503680c1
commit a4a52b62ae
2 changed files with 17 additions and 13 deletions

View File

@@ -3335,8 +3335,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='show results only for specified repo(s)')
@cmdln.option('-V', '--vertical', action='store_true',
help='list packages vertically instead horizontally')
@cmdln.option('-S', '--show-non-building', action='store_true',
help='Show also packages which are build disabled or excluded')
@cmdln.option('--hide-disabled', action='store_true',
help='hide packages that are disabled or excluded in all repos, also hide repos that have only disabled or excluded packages')
@cmdln.alias('pr')
def do_prjresults(self, subcmd, opts, *args):
"""${cmd_name}: Shows project-wide build results
@@ -3358,7 +3358,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
wd = os.curdir
project = store_read_project(wd)
print '\n'.join(get_prj_results(apiurl, project, hide_legend=opts.hide_legend, csv=opts.csv, status_filter=opts.status_filter, name_filter=opts.name_filter, repo=opts.repo, arch=opts.arch, vertical=opts.vertical, show_non_building=opts.show_non_building))
print '\n'.join(get_prj_results(apiurl, project, hide_legend=opts.hide_legend, csv=opts.csv, status_filter=opts.status_filter, name_filter=opts.name_filter, repo=opts.repo, arch=opts.arch, vertical=opts.vertical, hide_disabled=opts.hide_disabled))
@cmdln.option('-q', '--hide-legend', action='store_true',