From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 43BAA138ACF for ; Thu, 5 Feb 2015 02:56:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31440E08ED; Thu, 5 Feb 2015 02:56:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AC8B7E08EB for ; Thu, 5 Feb 2015 02:56:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9604E33BF0F for ; Thu, 5 Feb 2015 02:56:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 84A701113E for ; Thu, 5 Feb 2015 02:56:44 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1423104836.04610b2895a7786ca9f31e09f03a7274b7c6cb88.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/updater.py X-VCS-Directories: layman/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: 04610b2895a7786ca9f31e09f03a7274b7c6cb88 X-VCS-Branch: master Date: Thu, 5 Feb 2015 02:56:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 80ec59a8-a0f7-4021-8a74-a0715b2a5dd1 X-Archives-Hash: 411b649d421fd548beab919bcbf61f18 commit: 04610b2895a7786ca9f31e09f03a7274b7c6cb88 Author: Devan Franchini gentoo org> AuthorDate: Thu Feb 5 02:51:49 2015 +0000 Commit: Devan Franchini gentoo 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: