mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +01:00
- introduced new "request_show_source_buildstatus" config option
If enabled, it always shows the source buildstatus during "osc rq show <id>" or "osc rq list --interactive". By default, it is disabled.
This commit is contained in:
parent
add34d65cb
commit
e8783d2501
@ -2130,6 +2130,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
if cmd in ['add'] and not opts.user and not opts.group and not opts.project:
|
||||
raise oscerr.WrongArgs('No reviewer specified.')
|
||||
|
||||
source_buildstatus = conf.config['request_show_source_buildstatus'] or opts.source_buildstatus
|
||||
|
||||
reqid = None
|
||||
supersedid = None
|
||||
if cmd == 'list' or cmd == 'approvenew':
|
||||
@ -2283,7 +2285,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
ignore_reviews = subcmd != 'review'
|
||||
request_interactive_review(apiurl, result, group=opts.group,
|
||||
ignore_reviews=ignore_reviews,
|
||||
source_buildstatus=opts.source_buildstatus)
|
||||
source_buildstatus=source_buildstatus)
|
||||
else:
|
||||
print(result.list_view(), '\n')
|
||||
else:
|
||||
@ -2324,11 +2326,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
ignore_reviews = subcmd != 'review'
|
||||
return request_interactive_review(apiurl, r, group=opts.group,
|
||||
ignore_reviews=ignore_reviews,
|
||||
source_buildstatus=opts.source_buildstatus)
|
||||
source_buildstatus=source_buildstatus)
|
||||
else:
|
||||
print(r)
|
||||
print_comments(apiurl, 'request', reqid)
|
||||
if opts.source_buildstatus:
|
||||
if source_buildstatus:
|
||||
sr_actions = r.get_actions('submit')
|
||||
if not sr_actions:
|
||||
raise oscerr.WrongOptions( '\'--source-buildstatus\' not possible ' \
|
||||
|
@ -161,6 +161,7 @@ DEFAULTS = {'apiurl': 'https://api.opensuse.org',
|
||||
# what to do with the source package if the submitrequest has been accepted
|
||||
'submitrequest_on_accept_action': '',
|
||||
'request_show_interactive': '0',
|
||||
'request_show_source_buildstatus': '0',
|
||||
# if a review is accepted in interactive mode and a group
|
||||
# was specified the review will be accepted for this group
|
||||
'review_inherit_group': '0',
|
||||
@ -185,8 +186,8 @@ config = DEFAULTS.copy()
|
||||
|
||||
boolean_opts = ['debug', 'do_package_tracking', 'http_debug', 'post_mortem', 'traceback', 'check_filelist', 'plaintext_passwd',
|
||||
'checkout_no_colon', 'checkout_rooted', 'check_for_request_on_action', 'linkcontrol', 'show_download_progress', 'request_show_interactive',
|
||||
'review_inherit_group', 'use_keyring', 'gnome_keyring', 'no_verify', 'builtin_signature_check', 'http_full_debug',
|
||||
'include_request_from_project', 'local_service_run', 'buildlog_strip_time']
|
||||
'request_show_source_buildstatus', 'review_inherit_group', 'use_keyring', 'gnome_keyring', 'no_verify', 'builtin_signature_check',
|
||||
'http_full_debug', 'include_request_from_project', 'local_service_run', 'buildlog_strip_time']
|
||||
|
||||
api_host_options = ['user', 'pass', 'passx', 'aliases', 'http_headers', 'email', 'sslcertck', 'cafile', 'capath', 'trusted_prj']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user