summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge8
1 files 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