Fix depgraph._wrapped_select_pkg_highest_available_imp() to check
authorZac Medico <zmedico@gentoo.org>
Sun, 5 Sep 2010 09:18:36 +0000 (02:18 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 5 Sep 2010 09:18:36 +0000 (02:18 -0700)
USE settings for installed packages when --newuse is enabled.

pym/_emerge/depgraph.py

index 5f406c878e391ab97ec778fdca7913b3e516261d..3cbd182ca3a7681ed6cd65e69e424d700c5a2650 100644 (file)
@@ -2787,7 +2787,7 @@ class depgraph(object):
                                                break
                                        # Compare built package to current config and
                                        # reject the built package if necessary.
-                                       if built and not installed and \
+                                       if built and (not installed or matched_packages) and \
                                                ("--newuse" in self._frozen_config.myopts or \
                                                "--reinstall" in self._frozen_config.myopts or \
                                                "--binpkg-respect-use" in self._frozen_config.myopts):