From a41cecc0e3a3302101aa0c2ff349150bda593b4e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 19 Jul 2007 23:43:44 +0000 Subject: 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 --- pym/emerge/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pym/emerge/__init__.py') 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): -- cgit v1.2.3-1-g7c22