From: Fabian Groffen Date: Wed, 15 Dec 2010 17:58:45 +0000 (+0100) Subject: removeFromContents: don't use EROOT X-Git-Tag: v2.1.9.26~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d13ff44c0c14318a8a1fccc2ea7b69d295e32eb8;p=portage.git removeFromContents: don't use EROOT Fix bug #348790, make sure that CONTENTS entries keep their EPREFIX, by using ROOT, instead of EROOT. --- 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