summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-22 06:06:41 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-22 06:06:41 +0000
commitb59c4542eab4b88134324cb22608860031c6b45f (patch)
treea1146216f1e98c44e01334c84850850632649ac8
parent6e3a6a8b9cb8477afb12497b43f8f58c06a90128 (diff)
downloadportage-b59c4542eab4b88134324cb22608860031c6b45f.tar.gz
portage-b59c4542eab4b88134324cb22608860031c6b45f.tar.bz2
portage-b59c4542eab4b88134324cb22608860031c6b45f.zip
Make --prune pull in the system set since that could pull in some slots that wouldn't be pulled in otherwise.
svn path=/main/trunk/; revision=7343
-rw-r--r--pym/emerge/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 485c22c9a..3799627ef 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -5363,6 +5363,9 @@ def action_depclean(settings, trees, ldpath_mtimes,
if vardb.match(atom):
remaining_atoms.append((atom, 'system', hard))
elif action == "prune":
+ for atom in syslist:
+ if vardb.match(atom):
+ remaining_atoms.append((atom, 'system', hard))
# 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())