summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/emerge/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 7c9366dae..c0fd5671e 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -5331,6 +5331,11 @@ def action_depclean(settings, trees, ldpath_mtimes,
# Pull in everything that's installed since we don't want to prune a
# package if something depends on it.
remaining_atoms.extend((atom, 'world', hard) for atom in vardb.cp_all())
+ if not myfiles:
+ # Try to prune everything that's slotted.
+ for cp in vardb.cp_all():
+ if len(vardb.cp_list(cp)) > 1:
+ args_set.add(cp)
unresolveable = {}
aux_keys = ["DEPEND", "RDEPEND", "PDEPEND"]