From: Zac Medico Date: Fri, 11 May 2012 21:04:15 +0000 (-0700) Subject: config: use shlex to split known_repos X-Git-Tag: v2.2.0_alpha104~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d31e55509111490d44de60c579e12473ad52a447;p=portage.git config: use shlex to split known_repos --- 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)