From 7e5e1c5c602215dc07575480ac2f70e925bc9cb1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 19 Jul 2007 23:55:26 +0000 Subject: Make --prune try to prune all slotted packages if no atoms are given (that's how it already works with --nodeps). svn path=/main/trunk/; revision=7310 --- pym/emerge/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) 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"] -- cgit v1.2.3-1-g7c22