1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 22:56:15 +01:00

expand tilde to users home for packagecachedir in .oscrc [#293675]

This commit is contained in:
Dr. Peter Poeml 2007-07-24 10:46:03 +00:00
parent 31953fbbe4
commit 30b82a050e

View File

@ -225,6 +225,8 @@ def get_config():
except:
sys.exit('option %s requires an integer value' % i)
packagecachedir = os.path.expanduser(config['packagecachedir'])
# transform 'url1, url2, url3' form into a list
if type(config['urllist']) == str:
config['urllist'] = [ i.strip() for i in config['urllist'].split(',') ]