matching cpv rather than just the last one. (trunk r10256)
svn path=/main/branches/2.1.2/; revision=10257
# 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