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

don't add an empty string ('') to the extra-pkgs list

This commit is contained in:
Marcus Hüwe 2008-08-19 14:36:52 +00:00
parent e93678d5a0
commit 7dd72fd089

View File

@ -295,7 +295,7 @@ def get_config(override_conffile = None,
config['packagecachedir'] = os.path.expanduser(config['packagecachedir'])
re_clist = re.compile('[, ]+')
config['extra-pkgs'] = [ i.strip() for i in re_clist.split(config['extra-pkgs'].strip()) ]
config['extra-pkgs'] = [ i.strip() for i in re_clist.split(config['extra-pkgs'].strip()) if i ]
if config['extra-pkgs'] == []:
config['extra-pkgs'] = None