diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-06 16:27:26 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-06 16:27:26 -0700 |
commit | a32038ffb00db6e65cdee26ca7cd08ada4b33208 (patch) | |
tree | 24423cea25cccf9895e67aa9b9e3d3d9f1401947 | |
parent | e422f604c7156f2c401c64cf00ca2a0cfc10f207 (diff) | |
download | portage-a32038ffb00db6e65cdee26ca7cd08ada4b33208.tar.gz portage-a32038ffb00db6e65cdee26ca7cd08ada4b33208.tar.bz2 portage-a32038ffb00db6e65cdee26ca7cd08ada4b33208.zip |
Fix _select_pkg_highest_available_imp to reject installed packages
returned from _wrapped_select_pkg_highest_available_imp when
necessary.
-rw-r--r-- | pym/_emerge/depgraph.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 3b604f04f..c05679561 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2545,6 +2545,11 @@ class depgraph(object): root, atom, onlydeps=onlydeps, allow_use_changes=True, allow_unstable_keywords=allow_unstable_keywords) + if pkg is not None and \ + pkg.installed and \ + not self._want_installed_pkg(pkg): + pkg = None + if pkg is not None and not pkg.visible: self._dynamic_config._needed_user_config_changes.setdefault(pkg, set()).add("unstable keyword") |