From 1c9d445cc268005c0155961538d6e94aa3efa8a2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Mar 2010 19:55:05 +0000 Subject: [PATCH] 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 --- pym/portage/_sets/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.26.2