From d31e55509111490d44de60c579e12473ad52a447 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 May 2012 14:04:15 -0700 Subject: [PATCH] config: use shlex to split known_repos --- pym/portage/package/ebuild/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py index 32d65367e..0cd35a804 100644 --- a/pym/portage/package/ebuild/config.py +++ b/pym/portage/package/ebuild/config.py @@ -1,4 +1,4 @@ -# Copyright 2010-2011 Gentoo Foundation +# Copyright 2010-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 __all__ = [ @@ -406,8 +406,8 @@ class config(object): known_repos = [] for confs in [make_globals, make_conf, self.configdict["env"]]: - known_repos.extend(confs.get("PORTDIR", '').split()) - known_repos.extend(confs.get("PORTDIR_OVERLAY", '').split()) + known_repos.extend(shlex_split(confs.get("PORTDIR", ''))) + known_repos.extend(shlex_split(confs.get("PORTDIR_OVERLAY", ''))) known_repos = frozenset(known_repos) locations_manager.load_profiles(known_repos) -- 2.26.2