Drop PREFIX LOCAL markers
authorFabian Groffen <grobian@gentoo.org>
Sat, 18 Sep 2010 10:26:58 +0000 (12:26 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sat, 18 Sep 2010 10:26:58 +0000 (12:26 +0200)
pym/portage/dbapi/vartree.py

index 144cc39f8ba069398f44c7f872d2792f9ac8ed56..3ec31e91b3f803d92a2ba2a88afc756e5dd862df 100644 (file)
@@ -1855,11 +1855,9 @@ class dblink(object):
                                if lstatobj is None:
                                                show_unmerge("---", unmerge_desc["!found"], file_type, obj)
                                                continue
-                               # PREFIX LOCAL: don't use EROOT or you will unmerge a
-                               # just upgraded package!
+                               # don't use EROOT, CONTENTS entries already contain EPREFIX
                                if obj.startswith(real_root):
                                        relative_path = obj[real_root_len:]
-                                       # PREFIX LOCAL
                                        is_owned = False
                                        for dblnk in others_in_slot:
                                                if dblnk.isowner(relative_path):
@@ -2049,9 +2047,8 @@ class dblink(object):
                                "self.settings['EROOT'] will be used.",
                                DeprecationWarning, stacklevel=2)
 
-               # PREFIX LOCAL: don't use eroot here
+               # don't use EROOT here, image already contains EPREFIX
                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
@@ -2547,9 +2544,7 @@ class dblink(object):
                        scheduler = self._scheduler
                        stopmerge = False
                        collisions = []
-                       # 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):
@@ -2797,10 +2792,7 @@ class dblink(object):
 
                srcroot = _unicode_decode(srcroot,
                        encoding=_encodings['content'], errors='strict')
-               # 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,