From dc8d70479dfb54a1f2561ba3fe82d7a62d97964f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 6 Sep 2010 13:12:51 -0700 Subject: [PATCH] Fix depgraph._wrapped_select_pkg_highest_available_imp() to check USE settings for installed packages when --newuse is enabled in cases when none of the packages match a given USE dep. --- pym/_emerge/depgraph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 94e55e173..d2b64c4b0 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2565,6 +2565,7 @@ class depgraph(object): portdb = self._frozen_config.roots[root].trees["porttree"].dbapi # List of acceptable packages, ordered by type preference. matched_packages = [] + matched_pkgs_ignore_use = [] highest_version = None if not isinstance(atom, portage.dep.Atom): atom = portage.dep.Atom(atom) @@ -2726,6 +2727,7 @@ class depgraph(object): # since IUSE cannot be adjusted by the user. continue + matched_pkgs_ignore_use.append(pkg) if allow_use_changes: target_use = {} for flag in atom.use.enabled: @@ -2794,7 +2796,7 @@ class depgraph(object): break # Compare built package to current config and # reject the built package if necessary. - if built and (not installed or matched_packages) and \ + if built and (not installed or matched_pkgs_ignore_use) and \ ("--newuse" in self._frozen_config.myopts or \ "--reinstall" in self._frozen_config.myopts or \ "--binpkg-respect-use" in self._frozen_config.myopts): -- 2.26.2