From: Zac Medico Date: Fri, 9 May 2008 02:14:38 +0000 (-0000) Subject: Make the fix for bug #220341 better by checking all selected packages for X-Git-Tag: v2.2_pre7~58 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=183829c5620a02d43057cc0b2b6b395bb75550b1;p=portage.git 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 --- 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