1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

build: make it possible to override urllist (the list of urls where packages are downloaded in the config file

This commit is contained in:
Dr. Peter Poeml 2006-07-17 13:14:17 +00:00
parent 3003250628
commit 545222f9b7

View File

@ -228,7 +228,7 @@ pass: %s
auth_dict[host] = dict(config.items(host))
config = dict(config.items('general'))
config = dict(config.items('general', raw=1))
# make it possible to override configuration of the rc file
for var in ['OSC_PACKAGECACHEDIR', 'BUILD_ROOT']:
@ -240,6 +240,10 @@ pass: %s
print 'Overriding config value for %s=\'%s\' with \'%s\'' % (var, config[var], val)
config[var] = val
# transform 'url1, url2, url3' form into a list
if type(config['urllist']) == str:
config['urllist'] = [ i.strip() for i in config['urllist'].split(',') ]
return config, auth_dict