summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-19 23:43:44 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-19 23:43:44 +0000
commita41cecc0e3a3302101aa0c2ff349150bda593b4e (patch)
tree0f01afaddfce3844f4f0d63887123f9604d8ce06 /pym
parent4b860e613b62a47fa44ff4cc33dcdffc933dd698 (diff)
downloadportage-a41cecc0e3a3302101aa0c2ff349150bda593b4e.tar.gz
portage-a41cecc0e3a3302101aa0c2ff349150bda593b4e.tar.bz2
portage-a41cecc0e3a3302101aa0c2ff349150bda593b4e.zip
Make --prune bail out like depclean does if there are unresolved dependencies. Notify the user that they can use --nodeps in that case.
svn path=/main/trunk/; revision=7309
Diffstat (limited to 'pym')
-rw-r--r--pym/emerge/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 00ba5b6f2..7c9366dae 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -5449,14 +5449,17 @@ def action_depclean(settings, trees, ldpath_mtimes,
print
for atom in unresolveable:
print atom, "required by", " ".join(unresolveable[atom])
- if unresolveable and action == "depclean":
+ if unresolveable:
print
print "Have you forgotten to run " + good("`emerge --update --newuse --deep world`") + " prior to"
- print "depclean? It may be necessary to manually uninstall packages that no longer"
+ print "%s? It may be necessary to manually uninstall packages that no longer" % action
print "exist in the portage tree since it may not be possible to satisfy their"
print "dependencies. Also, be aware of the --with-bdeps option that is documented"
print "in " + good("`man emerge`") + "."
print
+ if action == "prune":
+ print "If you would like to ignore dependencies then use %s." % \
+ good("--nodeps")
return
def show_parents(child_node):