diff options
author | Fabian Groffen <grobian@gentoo.org> | 2010-09-05 22:12:23 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-17 14:05:47 -0700 |
commit | 77238b47f55ed3c29a3d57fd26aeadf1550fd292 (patch) | |
tree | 1ef091d13aed96c57f67a34525c6826abc29653b | |
parent | 35ad22e7ce30a43451a7cfe0498ec483f149ba48 (diff) | |
download | portage-77238b47f55ed3c29a3d57fd26aeadf1550fd292.tar.gz portage-77238b47f55ed3c29a3d57fd26aeadf1550fd292.tar.bz2 portage-77238b47f55ed3c29a3d57fd26aeadf1550fd292.zip |
Do NOT use EROOT when merging files to the live filesystem! It inevitably makes double offsets occur
-rw-r--r-- | pym/portage/dbapi/vartree.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 80d67fb87..ea54433c9 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -2043,7 +2043,9 @@ class dblink(object): "self.settings['EROOT'] will be used.", DeprecationWarning, stacklevel=2) - destroot = self._eroot + # PREFIX LOCAL: don't use eroot here + destroot = self.settings['ROOT'] + # PREFIX LOCAL # The given filename argument might have a different encoding than the # the filenames contained in the contents, so use separate wrapped os @@ -2539,7 +2541,9 @@ class dblink(object): scheduler = self._scheduler stopmerge = False collisions = [] - destroot = self._eroot + # PREFIX LOCAL: don't use eroot here + destroot = self.settings['ROOT'] + # PREFIX LOCAL showMessage(_(" %s checking %d files for package collisions\n") % \ (colorize("GOOD", "*"), len(mycontents))) for i, f in enumerate(mycontents): @@ -2787,7 +2791,10 @@ class dblink(object): srcroot = _unicode_decode(srcroot, encoding=_encodings['content'], errors='strict') - destroot = self._eroot + # PREFIX LOCAL: no eroot here, image dir already has EPREFIX, + # will end up with double prefix in installation + destroot = self.settings['ROOT'] + # PREFIX LOCAL inforoot = _unicode_decode(inforoot, encoding=_encodings['content'], errors='strict') myebuild = _unicode_decode(myebuild, |