diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-06-22 04:04:50 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-06-22 04:04:50 +0000 |
commit | a55e4523d3b699db69cbb4b9add385d53380cdbf (patch) | |
tree | 96a8c0347ed7aafc39821ce7cfd799ea07d75d3e | |
parent | 0416fae959d1664821a35b232a3cf62e264c005a (diff) | |
download | portage-a55e4523d3b699db69cbb4b9add385d53380cdbf.tar.gz portage-a55e4523d3b699db69cbb4b9add385d53380cdbf.tar.bz2 portage-a55e4523d3b699db69cbb4b9add385d53380cdbf.zip |
Fix broken path handling wrt $ROOT in LibraryConsumerSet.mapPathsToAtoms().
svn path=/main/trunk/; revision=10759
-rw-r--r-- | pym/portage/sets/libs.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pym/portage/sets/libs.py b/pym/portage/sets/libs.py index e8d6a6107..b41653575 100644 --- a/pym/portage/sets/libs.py +++ b/pym/portage/sets/libs.py @@ -16,9 +16,7 @@ class LibraryConsumerSet(PackageSet): def mapPathsToAtoms(self, paths): rValue = set() - root_len = len(self.dbapi.root) - for link, relative_p in self.dbapi._owners.iter_owners( - p[root_len:] for p in paths): + for link, p in self.dbapi._owners.iter_owners(paths): cat, pn = catpkgsplit(link.mycpv)[:2] slot = self.dbapi.aux_get(link.mycpv, ["SLOT"])[0] rValue.add("%s/%s:%s" % (cat, pn, slot)) |