loadResumeCommand: select first matched package
authorZac Medico <zmedico@gentoo.org>
Mon, 13 Dec 2010 01:55:50 +0000 (17:55 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 13 Dec 2010 01:55:50 +0000 (17:55 -0800)
We need to break out of the loop after the first match here, since
the first package comes from the highest priority repo.

pym/_emerge/depgraph.py

index 858a9d46ba1866a9516276c8d8db4023feef6589..4aec743b54eb7256e895bb69fecde61025ad67fc 100644 (file)
@@ -5132,6 +5132,7 @@ class depgraph(object):
                                        self._frozen_config.excluded_pkgs.findAtomForPackage(pkg,
                                                modified_use=self._pkg_use_enabled(pkg)):
                                        continue
+                               break
 
                        if pkg is None:
                                # It does no exist or it is corrupt.