projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0416fae
)
Fix broken path handling wrt $ROOT in LibraryConsumerSet.mapPathsToAtoms().
author
Zac Medico
<zmedico@gentoo.org>
Sun, 22 Jun 2008 04:04:50 +0000
(
04:04
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 22 Jun 2008 04:04:50 +0000
(
04:04
-0000)
svn path=/main/trunk/; revision=10759
pym/portage/sets/libs.py
patch
|
blob
|
history
diff --git
a/pym/portage/sets/libs.py
b/pym/portage/sets/libs.py
index e8d6a6107b513dd5dcfe8cc3adb919d8c1a2e490..b4165357562a69813faab6457137aa122933c51b 100644
(file)
--- 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))