diff options
Diffstat (limited to 'pym/portage/_sets/libs.py')
-rw-r--r-- | pym/portage/_sets/libs.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pym/portage/_sets/libs.py b/pym/portage/_sets/libs.py index 20347e452..3543b8d15 100644 --- a/pym/portage/_sets/libs.py +++ b/pym/portage/_sets/libs.py @@ -19,10 +19,12 @@ class LibraryConsumerSet(PackageSet): def mapPathsToAtoms(self, paths): rValue = set() - 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)) + for p in paths: + owners = self.dbapi._linkmap.getOwners(p) + for cpv in owners: + cat, pn = catpkgsplit(cpv)[:2] + slot, = self.dbapi.aux_get(cpv, ["SLOT"]) + rValue.add("%s/%s:%s" % (cat, pn, slot)) return rValue class LibraryFileConsumerSet(LibraryConsumerSet): |