From: Zac Medico Date: Fri, 9 May 2008 02:15:10 +0000 (-0000) Subject: Make the fix for bug #220341 better by checking all selected packages for X-Git-Tag: v2.1.5~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf8f3ccb672582d7b0df993101744766e041b237;p=portage.git Make the fix for bug #220341 better by checking all selected packages for matching cpv rather than just the last one. (trunk r10256) svn path=/main/branches/2.1.2/; revision=10257 --- diff --git a/bin/emerge b/bin/emerge index 02bcffc10..f0d0a647c 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3092,9 +3092,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