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

pym/_emerge/__init__.py

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