summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-21 03:37:08 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-21 03:37:08 +0000
commit99310c0af721e08c2ab5f2d3c9c02ed3691368cb (patch)
tree4830fd7fd0fb97efa54ee2bb546b8a0f33491c78
parent9b41176873f43c1213bfe20a789989251b3d70aa (diff)
downloadportage-99310c0af721e08c2ab5f2d3c9c02ed3691368cb.tar.gz
portage-99310c0af721e08c2ab5f2d3c9c02ed3691368cb.tar.bz2
portage-99310c0af721e08c2ab5f2d3c9c02ed3691368cb.zip
Hint about --nodeps if --prune doesn't find anything to prune. Also enable reverse dependency display for global depclean.
svn path=/main/trunk/; revision=7327
-rw-r--r--pym/emerge/__init__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 88637ee2f..c20fcfeb3 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -5521,6 +5521,8 @@ def action_depclean(settings, trees, ldpath_mtimes,
for pkg in vardb.cpv_all():
if not fakedb.cpv_exists(pkg):
cleanlist.append(pkg)
+ elif "--verbose" in myopts:
+ show_parents(pkg)
elif action == "prune":
for atom in args_set:
for pkg in vardb.match(atom):
@@ -5529,13 +5531,17 @@ def action_depclean(settings, trees, ldpath_mtimes,
elif "--verbose" in myopts:
show_parents(pkg)
- if myfiles and not cleanlist:
+ if not cleanlist:
portage.writemsg_stdout(
">>> No packages selected for removal by %s\n" % action)
if "--verbose" not in myopts:
portage.writemsg_stdout(
">>> To see reverse dependencies, use %s\n" % \
good("--verbose"))
+ if action == "prune":
+ portage.writemsg_stdout(
+ ">>> To ignore dependencies, use %s\n" % \
+ good("--nodeps"))
if len(cleanlist):
unmerge(settings, myopts, trees[settings["ROOT"]]["vartree"],