Gentoo Archives: gentoo-commits

From: Devan Franchini <twitch153@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/layman:master commit in: layman/
Date: Thu, 05 Feb 2015 02:56:49
Message-Id: 1423104836.04610b2895a7786ca9f31e09f03a7274b7c6cb88.twitch153@gentoo
1 commit: 04610b2895a7786ca9f31e09f03a7274b7c6cb88
2 Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 5 02:51:49 2015 +0000
4 Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 5 02:53:56 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=04610b28
7
8 updater.py: Moves split() and removes split() parameter
9
10 X-Gentoo-Bug: 538868
11 X-Gentoo-Bug-URL: https://bugs.gentoo.org/538868
12
13 ---
14 layman/updater.py | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
16
17 diff --git a/layman/updater.py b/layman/updater.py
18 index 9e7100a..e3003f9 100644
19 --- a/layman/updater.py
20 +++ b/layman/updater.py
21 @@ -93,10 +93,10 @@ class Main(object):
22 print_instructions = False
23 if isinstance(self.config['conf_type'], STR):
24 self.config.set_option('conf_type',
25 - self.config['conf_type'].strip('\s').split(','))
26 + self.config['conf_type'].split(','))
27 for i in self.config['conf_type']:
28 - conf = i.replace('.', '_')
29 - if not os.access(self.config[conf], os.F_OK):
30 + conf = i.replace('.', '_').strip()
31 + if conf and not os.access(self.config[conf], os.F_OK):
32 getattr(self, 'create_%(conf)s' % {'conf': conf})()
33 print_instructions = True
34 if print_instructions: