Fix the noreplace logic to break out of the cpv loop early since there's
authorZac Medico <zmedico@gentoo.org>
Thu, 27 Mar 2008 04:28:08 +0000 (04:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 27 Mar 2008 04:28:08 +0000 (04:28 -0000)
no point in examining any lower versions from the same repo.

svn path=/main/trunk/; revision=9514

pym/_emerge/__init__.py

index bd5c22ac0836a4a4c383c946c9f455a0854dd9eb..dac6f8b0d6fa44e45c0cf749dd40c0907ed465a5 100644 (file)
@@ -2612,7 +2612,7 @@ class depgraph(object):
                                        # Make --noreplace take precedence over --newuse.
                                        if not installed and noreplace and \
                                                cpv in vardb.match(atom):
-                                               continue
+                                               break
                                        reinstall_for_flags = None
                                        try:
                                                metadata = dict(izip(db_keys,