1 |
Author: zmedico |
2 |
Date: 2008-03-30 22:08:31 +0000 (Sun, 30 Mar 2008) |
3 |
New Revision: 9640 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.2/pym/portage.py |
7 |
Log: |
8 |
When dblink.treewalk() queries for other packages in the same slot, filter |
9 |
out old-style virtual matches since they are not desired. (trunk r9637) |
10 |
|
11 |
|
12 |
Modified: main/branches/2.1.2/pym/portage.py |
13 |
=================================================================== |
14 |
--- main/branches/2.1.2/pym/portage.py 2008-03-30 22:05:04 UTC (rev 9639) |
15 |
+++ main/branches/2.1.2/pym/portage.py 2008-03-30 22:08:31 UTC (rev 9640) |
16 |
@@ -8867,8 +8867,11 @@ |
17 |
for v in self.vartree.dbapi.cp_list(self.mysplit[0]): |
18 |
otherversions.append(v.split("/")[1]) |
19 |
|
20 |
- slot_matches = self.vartree.dbapi.match( |
21 |
- "%s:%s" % (self.mysplit[0], slot)) |
22 |
+ # filter any old-style virtual matches |
23 |
+ slot_matches = [cpv for cpv in self.vartree.dbapi.match( |
24 |
+ "%s:%s" % (cpv_getkey(self.mycpv), slot)) \ |
25 |
+ if cpv_getkey(cpv) == cpv_getkey(self.mycpv)] |
26 |
+ |
27 |
if self.mycpv not in slot_matches and \ |
28 |
self.vartree.dbapi.cpv_exists(self.mycpv): |
29 |
# handle multislot or unapplied slotmove |
30 |
|
31 |
-- |
32 |
gentoo-commits@l.g.o mailing list |