summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2010-12-15 18:58:45 +0100
committerZac Medico <zmedico@gentoo.org>2010-12-16 00:59:17 -0800
commitd13ff44c0c14318a8a1fccc2ea7b69d295e32eb8 (patch)
treede3802c318abe2fb588aad5bb948c0ed225d4b7a
parenta729e9c5ac317e08625d8a62e1ba4794623ab2c9 (diff)
downloadportage-d13ff44c0c14318a8a1fccc2ea7b69d295e32eb8.tar.gz
portage-d13ff44c0c14318a8a1fccc2ea7b69d295e32eb8.tar.bz2
portage-d13ff44c0c14318a8a1fccc2ea7b69d295e32eb8.zip
removeFromContents: don't use EROOT
Fix bug #348790, make sure that CONTENTS entries keep their EPREFIX, by using ROOT, instead of EROOT.
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 204d45b5d..863fa19a6 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -771,7 +771,7 @@ class vardbapi(dbapi):
"""
if not hasattr(pkg, "getcontents"):
pkg = self._dblink(pkg)
- root = self._eroot
+ root = self.settings['ROOT']
root_len = len(root) - 1
new_contents = pkg.getcontents().copy()
removed = 0