From c3d1e0cb467912a099ba1485bf5eeadcfe311bf8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 26 Aug 2006 01:32:10 +0000 Subject: [PATCH] Recommend `emerge --update --deep world` prior to depclean in order to make sure that all dependencies are satisfied. See bug #145078. svn path=/main/trunk/; revision=4344 --- bin/emerge | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/emerge b/bin/emerge index faedc3c50..21be7a087 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3267,6 +3267,11 @@ def action_depclean(settings, trees, ldpath_mtimes, print warn_prefix + "mistakes. Packages that are part of the world set will always" print warn_prefix + "be kept. They can be manually added to this set with" print warn_prefix + good("`emerge --noreplace `") + "." + print warn_prefix + print warn_prefix + "As a safety measure, depclean will not remove any packages" + print warn_prefix + "unless *all* required dependencies have been resolved. As a" + print warn_prefix + "consequence, it is often necessary to run " + print warn_prefix + good("`emerge --update --deep world`") + " prior to depclean." xterm_titles = "notitles" not in settings.features portdb = trees[settings["ROOT"]]["porttree"].dbapi @@ -3342,6 +3347,8 @@ def action_depclean(settings, trees, ldpath_mtimes, for atom in unresolveable: print atom, "required by", " ".join(unresolveable[atom]) print + print "Have you forgotten to run " + good("`emerge --update --deep world`") + " prior to depclean?" + print return cleanlist = [pkg for pkg in vardb.cpv_all() if not fakedb.cpv_exists(pkg)] -- 2.26.2