diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-12-01 15:22:59 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-12-01 15:22:59 -0800 |
commit | 4b897286cf94c6ec2c556a75ea2e67798e1157cc (patch) | |
tree | d059e2933da02ef535f3292eb51c2ab94bd7286d /pym/_emerge/depgraph.py | |
parent | d86595e92193fd6b2b76365d01a13147c21bf75f (diff) | |
download | portage-4b897286cf94c6ec2c556a75ea2e67798e1157cc.tar.gz portage-4b897286cf94c6ec2c556a75ea2e67798e1157cc.tar.bz2 portage-4b897286cf94c6ec2c556a75ea2e67798e1157cc.zip |
emerge --depclean: rm unavailable slot bug 445506
Diffstat (limited to 'pym/_emerge/depgraph.py')
-rw-r--r-- | pym/_emerge/depgraph.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index f5fe4352f..65a94ab37 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -4634,6 +4634,14 @@ class depgraph(object): unmasked = [pkg for pkg in matches if not pkg.masks] if unmasked: matches = unmasked + if len(matches) > 1: + # Now account for packages for which existing + # ebuilds are masked or unavailable (bug #445506). + unmasked = [pkg for pkg in matches if + self._equiv_ebuild_visible(pkg)] + if unmasked: + matches = unmasked + pkg = matches[-1] # highest match in_graph = self._dynamic_config._slot_pkg_map[root].get(pkg.slot_atom) return pkg, in_graph |