Make the fix for bug #220341 better by checking all selected packages for
authorZac Medico <zmedico@gentoo.org>
Fri, 9 May 2008 02:14:38 +0000 (02:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 9 May 2008 02:14:38 +0000 (02:14 -0000)
matching cpv rather than just the last one.

svn path=/main/trunk/; revision=10256

pym/_emerge/__init__.py

index 1aff570d046ea44b45300256cfff2ef56017df7f..2dc0b907f5848120b96f19398f24585eb620fb8c 100644 (file)
@@ -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