config: use shlex to split known_repos
authorZac Medico <zmedico@gentoo.org>
Fri, 11 May 2012 21:04:15 +0000 (14:04 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 11 May 2012 21:04:15 +0000 (14:04 -0700)
pym/portage/package/ebuild/config.py

index 32d65367ef89c562614fc6af84f3b62a3f089ef1..0cd35a804cf4ab47141165bfd7456d56836a0105 100644 (file)
@@ -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)