summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 4db340342..a08ce45f6 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -2947,7 +2947,10 @@ class depgraph(object):
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)