summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dbapi/vartree.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index f9e3fc9ed..2127cae0a 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -2107,8 +2107,10 @@ class dblink(object):
liblist = linkmap.listLibraryObjects()
# get list of libraries from old package instance
- old_contents = self._installed_instance.getcontents().keys()
- old_libs = set(old_contents).intersection(liblist)
+ root_len = len(self.myroot) - 1
+ old_contents = set(p[root_len:] \
+ for p in self._installed_instance.getcontents())
+ old_libs = old_contents.intersection(liblist)
# get list of libraries from new package instance
mylibs = set([os.path.join(os.sep, x) for x in mycontents]).intersection(liblist)