1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02:00

- config_set_option: set override_no_keyring and override_no_gnome_keyring to the current config defaults when calling "get_config"

This commit is contained in:
Marcus Huewe 2011-09-21 01:52:04 +02:00
parent 5707f2c6f4
commit f98758e902

View File

@ -617,7 +617,9 @@ def config_set_option(section, opt, val=None, delete=False, update=True, **kwarg
write_config(config['conffile'], cp)
run = True
if run and update:
kw = {'override_conffile': config['conffile']}
kw = {'override_conffile': config['conffile'],
'override_no_keyring': config['use_keyring'],
'override_no_gnome_keyring': config['gnome_keyring']}
kw.update(kwargs)
get_config(**kw)
if cp.has_option(section, opt):