Use shlex.split() to split CONFIG_PROTECT and CONFIG_PROTECT_MASK.
authorZac Medico <zmedico@gentoo.org>
Fri, 22 Aug 2008 22:25:59 +0000 (22:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 22 Aug 2008 22:25:59 +0000 (22:25 -0000)
svn path=/main/trunk/; revision=11450

pym/portage/dbapi/vartree.py

index c28ea7463a5c2dcd5accd7251a43354fbff17363..b8b37236c65a980e83b80edb23df7a16d0c2c13c 100644 (file)
@@ -1638,8 +1638,8 @@ class dblink(object):
 
                self.myroot=myroot
                protect_obj = ConfigProtect(myroot,
-                       mysettings.get("CONFIG_PROTECT","").split(),
-                       mysettings.get("CONFIG_PROTECT_MASK","").split())
+                       shlex.split(mysettings.get("CONFIG_PROTECT", "")),
+                       shlex.split(mysettings.get("CONFIG_PROTECT_MASK", "")))
                self.updateprotect = protect_obj.updateprotect
                self.isprotected = protect_obj.isprotected
                self._installed_instance = None