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 BDAF4138CC5 for ; Thu, 26 Mar 2015 22:50:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9DCD2E084B; Thu, 26 Mar 2015 22:50:44 +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 58C2CE084B for ; Thu, 26 Mar 2015 22:50:44 +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 4E35C340B51 for ; Thu, 26 Mar 2015 22:50:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EC69F149AE for ; Thu, 26 Mar 2015 22:50:38 +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: <1427410119.e8f1abce52ccf6812b2b25ec6cd0f4d901302c64.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/argsparser.py X-VCS-Directories: layman/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: e8f1abce52ccf6812b2b25ec6cd0f4d901302c64 X-VCS-Branch: master Date: Thu, 26 Mar 2015 22:50:38 +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: 6eb311b8-7573-4fce-90dc-9d93ce6f8c68 X-Archives-Hash: 11b4ffc56a1c0181ddf12bc4bcdecfd7 commit: e8f1abce52ccf6812b2b25ec6cd0f4d901302c64 Author: Devan Franchini gentoo org> AuthorDate: Thu Mar 26 22:48:39 2015 +0000 Commit: Devan Franchini gentoo org> CommitDate: Thu Mar 26 22:48:39 2015 +0000 URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=e8f1abce argsparser.py: Adds proper splitting of protocol_order config option layman/argsparser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layman/argsparser.py b/layman/argsparser.py index 44b2ca4..eede806 100644 --- a/layman/argsparser.py +++ b/layman/argsparser.py @@ -367,6 +367,8 @@ class ArgsParser(BareConfig): if self.config.has_option('MAIN', 'protocol_order'): protocol_order = self.config.get('MAIN', 'protocol_order') if protocol_order: + if not isinstance(protocol_order, list): + protocol_order = [e.strip() for e in protocol_order.split(',')] return protocol_order if key == 'overlays':