summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-09 02:14:38 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-09 02:14:38 +0000
commit183829c5620a02d43057cc0b2b6b395bb75550b1 (patch)
tree6210aad785cda98f5a7184ce98f925e01b9a66c1
parent9505dddbcae925b9c513932f5149ad4ebbb7499a (diff)
downloadportage-183829c5620a02d43057cc0b2b6b395bb75550b1.tar.gz
portage-183829c5620a02d43057cc0b2b6b395bb75550b1.tar.bz2
portage-183829c5620a02d43057cc0b2b6b395bb75550b1.zip
Make the fix for bug #220341 better by checking all selected packages for
matching cpv rather than just the last one. svn path=/main/trunk/; revision=10256
-rw-r--r--pym/_emerge/__init__.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 1aff570d0..2dc0b907f 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -2940,9 +2940,11 @@ class depgraph(object):
# Therefore, assume that such SLOT dependencies are already
# satisfied rather than forcing a rebuild.
if installed and not cpv_list and matched_packages \
- and vardb.cpv_exists(matched_packages[-1].cpv) and \
- portage.dep.dep_getslot(atom):
- cpv_list = [matched_packages[-1].cpv]
+ and portage.dep.dep_getslot(atom):
+ for pkg in matched_packages:
+ if vardb.cpv_exists(pkg.cpv):
+ cpv_list = [pkg.cpv]
+ break
if not cpv_list:
continue