removeFromContents: don't use EROOT
authorFabian Groffen <grobian@gentoo.org>
Wed, 15 Dec 2010 17:58:45 +0000 (18:58 +0100)
committerZac Medico <zmedico@gentoo.org>
Thu, 16 Dec 2010 08:59:17 +0000 (00:59 -0800)
Fix bug #348790, make sure that CONTENTS entries keep their EPREFIX, by
using ROOT, instead of EROOT.

pym/portage/dbapi/vartree.py

index 204d45b5d5ef78f5974738743b7c4a0e715f6a2e..863fa19a664d27293b1ec9ffa709b2ac4fb63984 100644 (file)
@@ -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