commit: 04610b2895a7786ca9f31e09f03a7274b7c6cb88 Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> AuthorDate: Thu Feb 5 02:51:49 2015 +0000 Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org> CommitDate: Thu Feb 5 02:53:56 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=04610b28
updater.py: Moves split() and removes split() parameter X-Gentoo-Bug: 538868 X-Gentoo-Bug-URL: https://bugs.gentoo.org/538868 --- layman/updater.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layman/updater.py b/layman/updater.py index 9e7100a..e3003f9 100644 --- a/layman/updater.py +++ b/layman/updater.py @@ -93,10 +93,10 @@ class Main(object): print_instructions = False if isinstance(self.config['conf_type'], STR): self.config.set_option('conf_type', - self.config['conf_type'].strip('\s').split(',')) + self.config['conf_type'].split(',')) for i in self.config['conf_type']: - conf = i.replace('.', '_') - if not os.access(self.config[conf], os.F_OK): + conf = i.replace('.', '_').strip() + if conf and not os.access(self.config[conf], os.F_OK): getattr(self, 'create_%(conf)s' % {'conf': conf})() print_instructions = True if print_instructions:
