1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 06:46:13 +01:00

if configuration is overridden by envvars, print out a statement about it

This commit is contained in:
Dr. Peter Poeml 2006-07-17 10:36:26 +00:00
parent b61c4aec0f
commit e6fedfcf8a

View File

@ -236,6 +236,8 @@ pass: %s
if val:
if var.startswith('OSC_'): var = var[4:]
var = var.lower().replace('_', '-')
if config.has_key(var):
print 'Overriding config value for %s=\'%s\' with \'%s\'' % (var, config[var], val)
config[var] = val
return config, auth_dict