summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge7
1 files changed, 7 insertions, 0 deletions
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 <atom>`") + "."
+ 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)]