From: Zac Medico Date: Thu, 19 Jul 2007 23:55:26 +0000 (-0000) Subject: Make --prune try to prune all slotted packages if no atoms are given (that's how... X-Git-Tag: v2.2_pre1~990 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e5e1c5c602215dc07575480ac2f70e925bc9cb1;p=portage.git 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 --- 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"]