mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-29 03:06:15 +01:00
don't add an empty string ('') to the extra-pkgs list
This commit is contained in:
parent
e93678d5a0
commit
7dd72fd089
@ -295,7 +295,7 @@ def get_config(override_conffile = None,
|
|||||||
config['packagecachedir'] = os.path.expanduser(config['packagecachedir'])
|
config['packagecachedir'] = os.path.expanduser(config['packagecachedir'])
|
||||||
|
|
||||||
re_clist = re.compile('[, ]+')
|
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'] == []:
|
if config['extra-pkgs'] == []:
|
||||||
config['extra-pkgs'] = None
|
config['extra-pkgs'] = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user