mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-09 20:45:47 +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:
parent
3003250628
commit
545222f9b7
@ -228,7 +228,7 @@ pass: %s
|
|||||||
auth_dict[host] = dict(config.items(host))
|
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
|
# make it possible to override configuration of the rc file
|
||||||
for var in ['OSC_PACKAGECACHEDIR', 'BUILD_ROOT']:
|
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)
|
print 'Overriding config value for %s=\'%s\' with \'%s\'' % (var, config[var], val)
|
||||||
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
|
return config, auth_dict
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user