# Make --noreplace take precedence over --newuse.
if not installed and noreplace and \
cpv in vardb.match(atom):
- break
+ # If the installed version is masked, it may
+ # be necessary to look at lower versions,
+ # in case there is a visible downgrade.
+ continue
reinstall_for_flags = None
cache_key = (pkg_type, root, cpv, pkg_status)
calculated_use = True
if not reinstall_for_flags and \
not must_reinstall and \
cpv in vardb.match(atom):
- break
+ # If the installed version is masked, it may
+ # be necessary to look at lower versions,
+ # in case there is a visible downgrade.
+ continue
if not built:
myeb = cpv
matched_packages.append(pkg)