diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-19 23:55:26 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-19 23:55:26 +0000 |
commit | 7e5e1c5c602215dc07575480ac2f70e925bc9cb1 (patch) | |
tree | e87ca6353668745d881aae19164474609cd36aeb | |
parent | a41cecc0e3a3302101aa0c2ff349150bda593b4e (diff) | |
download | portage-7e5e1c5c602215dc07575480ac2f70e925bc9cb1.tar.gz portage-7e5e1c5c602215dc07575480ac2f70e925bc9cb1.tar.bz2 portage-7e5e1c5c602215dc07575480ac2f70e925bc9cb1.zip |
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
-rw-r--r-- | pym/emerge/__init__.py | 5 |
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"] |