From 371f0fe1e997e279d75ce6d4a070b90331e7e52d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 25 Aug 2010 00:55:06 -0700 Subject: [PATCH] Add EROOT support to the @module-rebuild package set. --- cnf/sets/portage.conf | 2 +- pym/portage/sets/__init__.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cnf/sets/portage.conf b/cnf/sets/portage.conf index 2a66512e7..a21b587aa 100644 --- a/cnf/sets/portage.conf +++ b/cnf/sets/portage.conf @@ -56,7 +56,7 @@ includes = bzr cvs darcs git mercurial subversion tla # Installed packages that own files inside /lib/modules. [module-rebuild] class = portage.sets.dbapi.OwnerSet -files = %(ROOT)slib/modules +files = %(EROOT)slib/modules # Binary packages that have a different build time from a currently # installed package of the exact same version. diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py index 2f65f98bf..a942ac94a 100644 --- a/pym/portage/sets/__init__.py +++ b/pym/portage/sets/__init__.py @@ -35,6 +35,8 @@ class SetConfig(object): def __init__(self, paths, settings, trees): self._parser = SafeConfigParser( defaults={ + "EPREFIX" : settings["EPREFIX"], + "EROOT" : settings["EROOT"], "PORTAGE_CONFIGROOT" : settings["PORTAGE_CONFIGROOT"], "ROOT" : settings["ROOT"], }) -- 2.26.2