Fix @module-rebuild to support $ROOT. (trunk r15308)
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:03:23 +0000 (20:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:03:23 +0000 (20:03 -0000)
svn path=/main/branches/2.1.7/; revision=15543

pym/portage/_sets/__init__.py

index 95a4be16d611e12b749ae3b5b90622cb7e05d0e5..73adafd3eb9b26ebc0b0e99f78e681a5f21f09c1 100644 (file)
@@ -34,8 +34,10 @@ class SetConfigError(Exception):
 
 class SetConfig(object):
        def __init__(self, paths, settings, trees):
-               self._parser = SafeConfigParser(
-                       defaults={"PORTAGE_CONFIGROOT" : settings["PORTAGE_CONFIGROOT"]})
+               defaults={
+                       "PORTAGE_CONFIGROOT" : settings["PORTAGE_CONFIGROOT"],
+                       "ROOT" : settings["ROOT"],
+               })
                #self._parser.read(paths)
                # The "paths" argument is ignored and the config for
                # system and world sets is hardcoded below.