projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a41cecc
)
Make --prune try to prune all slotted packages if no atoms are given (that's how...
author
Zac Medico
<zmedico@gentoo.org>
Thu, 19 Jul 2007 23:55:26 +0000
(23:55 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 19 Jul 2007 23:55:26 +0000
(23:55 -0000)
svn path=/main/trunk/; revision=7310
pym/emerge/__init__.py
patch
|
blob
|
history
diff --git
a/pym/emerge/__init__.py
b/pym/emerge/__init__.py
index 7c9366dae80f8610693ea48b78481fb67c8f274e..c0fd5671e73b533cd02278225890d1c1ced5e94e 100644
(file)
--- 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"]