From 7dd72fd089af18239b7d58a561c3ea2c7859c97a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Tue, 19 Aug 2008 14:36:52 +0000 Subject: [PATCH] don't add an empty string ('') to the extra-pkgs list --- osc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/conf.py b/osc/conf.py index 3bd6ea8f..3f0aa0f8 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -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