From 28fa87078d882cd8cad66f60db4babfbdb850a91 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Tue, 14 Apr 2009 11:33:45 +0000 Subject: [PATCH] re-add support for urllist config option for compatability --- osc/build.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/osc/build.py b/osc/build.py index 1ae3d5b6..ca00ed3d 100644 --- a/osc/build.py +++ b/osc/build.py @@ -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')