Bug #298141 - Make /etc/portage/sets relative to PORTAGE_CONFIGROOT. Thanks
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 19:55:05 +0000 (19:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 19:55:05 +0000 (19:55 -0000)
to Martin Gysel (bearsh) <m.gysel@gmx.ch> for this patch. (trunk r15307)

svn path=/main/branches/2.1.7/; revision=15542

pym/portage/_sets/__init__.py

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