From: Zac Medico Date: Tue, 2 Mar 2010 19:55:05 +0000 (-0000) Subject: Bug #298141 - Make /etc/portage/sets relative to PORTAGE_CONFIGROOT. Thanks X-Git-Tag: v2.1.8~180 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1c9d445cc268005c0155961538d6e94aa3efa8a2;p=portage.git Bug #298141 - Make /etc/portage/sets relative to PORTAGE_CONFIGROOT. Thanks to Martin Gysel (bearsh) for this patch. (trunk r15307) svn path=/main/branches/2.1.7/; revision=15542 --- diff --git a/pym/portage/_sets/__init__.py b/pym/portage/_sets/__init__.py index 2550de3ba..95a4be16d 100644 --- a/pym/portage/_sets/__init__.py +++ b/pym/portage/_sets/__init__.py @@ -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.