From 73f0ee9047160afb5dafd99f062fa58f6b4bfbbc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Mar 2010 20:03:23 +0000 Subject: Fix @module-rebuild to support $ROOT. (trunk r15308) svn path=/main/branches/2.1.7/; revision=15543 --- pym/portage/_sets/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/portage/_sets/__init__.py b/pym/portage/_sets/__init__.py index 95a4be16d..73adafd3e 100644 --- a/pym/portage/_sets/__init__.py +++ b/pym/portage/_sets/__init__.py @@ -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. -- cgit v1.2.3-1-g7c22