Prevent some more visible downgrades from possibly being missed (bug #219369).
authorZac Medico <zmedico@gentoo.org>
Tue, 29 Apr 2008 03:02:20 +0000 (03:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 29 Apr 2008 03:02:20 +0000 (03:02 -0000)
svn path=/main/trunk/; revision=10034

pym/_emerge/__init__.py

index 2ed6474cee0dfea74847450c4e41259f91565e7c..4db34034236931aab69edfa4f80d82f83a5bfd61 100644 (file)
@@ -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