From bf8f3ccb672582d7b0df993101744766e041b237 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 9 May 2008 02:15:10 +0000 Subject: [PATCH] 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 --- bin/emerge | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.26.2