mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 10:16:14 +01:00
re-add support for urllist config option for compatability
This commit is contained in:
parent
f4fd8ac0fe
commit
28fa87078d
@ -385,6 +385,15 @@ def main(opts, argv):
|
||||
print 'Updating cache of required packages'
|
||||
|
||||
urllist = []
|
||||
|
||||
# transform 'url1, url2, url3' form into a list
|
||||
if 'urllist' in config:
|
||||
if type(config['urllist']) == str:
|
||||
re_clist = re.compile('[, ]+')
|
||||
urllist = [ i.strip() for i in re_clist.split(config['urllist'].strip()) ]
|
||||
else:
|
||||
urllist = config['urllist']
|
||||
|
||||
# OBS 1.5 and before has no downloadurl defined in buildinfo
|
||||
if bi.downloadurl:
|
||||
urllist.append(bi.downloadurl + '/%(extproject)s/%(extrepository)s/%(arch)s/%(filename)s')
|
||||
|
Loading…
Reference in New Issue
Block a user