From 4b897286cf94c6ec2c556a75ea2e67798e1157cc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 1 Dec 2012 15:22:59 -0800 Subject: emerge --depclean: rm unavailable slot bug 445506 --- pym/_emerge/depgraph.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pym/_emerge/depgraph.py') 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 -- cgit v1.2.3-1-g7c22