mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
allow no_verify also in .oscrc
This commit is contained in:
parent
c23002c953
commit
5fe669b15b
@ -3982,7 +3982,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
@cmdln.option('--nochecks', '--no-checks', action='store_true',
|
||||
help='Do not run post build checks on the resulting packages.')
|
||||
@cmdln.option('--no-verify', action='store_true',
|
||||
help='Skip signature verification of packages used for build.')
|
||||
help='Skip signature verification of packages used for build. (Global config in .oscrc: no_verify)')
|
||||
@cmdln.option('--noservice', '--no-service', action='store_true',
|
||||
help='Skip run of local source services as specified in _service file.')
|
||||
@cmdln.option('-p', '--prefer-pkgs', metavar='DIR', action='append',
|
||||
@ -4097,6 +4097,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
p = Package('.')
|
||||
p.run_source_services()
|
||||
|
||||
if conf.config['no_verify'] == '1':
|
||||
opts.no_verify = True
|
||||
|
||||
if opts.prefer_pkgs:
|
||||
for d in opts.prefer_pkgs:
|
||||
if not os.path.isdir(d):
|
||||
|
@ -89,6 +89,8 @@ DEFAULTS = { 'apiurl': 'https://api.opensuse.org',
|
||||
'use_keyring': '1',
|
||||
'gnome_keyring': '1',
|
||||
'cookiejar': '~/.osc_cookiejar',
|
||||
# fallback for osc build option --no-verify
|
||||
'no_verify': '0',
|
||||
# enable project tracking by default
|
||||
'do_package_tracking': '1',
|
||||
# default for osc build
|
||||
@ -231,6 +233,9 @@ apiurl = %(apiurl)s
|
||||
# show HTTP traffic useful for debugging
|
||||
#http_debug = 1
|
||||
|
||||
# Skip signature verification of packages used for build.
|
||||
#no_verify = 1
|
||||
|
||||
# jump into the debugger in case of errors
|
||||
#post_mortem = 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user