summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-29 03:02:20 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-29 03:02:20 +0000
commit7b5275ed490c41dc8fe5230acf5c8ddbf8950838 (patch)
tree38bdf4440871bc5c6f89e5cba088d5351155071f
parent3e2dfe7cecbf79102895d862b439250c2ba8da43 (diff)
downloadportage-7b5275ed490c41dc8fe5230acf5c8ddbf8950838.tar.gz
portage-7b5275ed490c41dc8fe5230acf5c8ddbf8950838.tar.bz2
portage-7b5275ed490c41dc8fe5230acf5c8ddbf8950838.zip
Prevent some more visible downgrades from possibly being missed (bug #219369).
svn path=/main/trunk/; revision=10034
-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 2ed6474ce..4db340342 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -2786,7 +2786,10 @@ class depgraph(object):
# 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