summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cnf/sets.conf2
-rw-r--r--pym/portage/sets/__init__.py5
2 files changed, 5 insertions, 2 deletions
diff --git a/cnf/sets.conf b/cnf/sets.conf
index f092c6a2f..46c86e750 100644
--- a/cnf/sets.conf
+++ b/cnf/sets.conf
@@ -63,7 +63,7 @@ includes = bzr cvs darcs git mercurial subversion tla
[module-rebuild]
class = portage.sets.dbapi.OwnerSet
world-candidate = False
-files = /lib/modules
+files = %(ROOT)slib/modules
# Installed packages for which the highest visible ebuild
# version is lower than the currently installed version.
diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py
index 9c2b86011..65ade2e54 100644
--- a/pym/portage/sets/__init__.py
+++ b/pym/portage/sets/__init__.py
@@ -35,7 +35,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)
self.errors = []
self.psets = {}