From: Zac Medico Date: Wed, 16 Aug 2006 19:37:05 +0000 (-0000) Subject: Add a depclean warning message, once again, because it's never completely safe. X-Git-Tag: v2.1.1~64 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7f2b985c716788fa223ad1c838adb36872d2dea1;p=portage.git Add a depclean warning message, once again, because it's never completely safe. svn path=/main/trunk/; revision=4270 --- diff --git a/bin/emerge b/bin/emerge index 7792db6c0..aa471a81b 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3252,6 +3252,17 @@ def action_depclean(settings, trees, ldpath_mtimes, # Kill packages that aren't explicitly merged or are required as a # dependency of another package. World file is explicit. + warn_prefix = colorize("BAD", "*** WARNING *** ") + print + print warn_prefix + "Depclean may break link level dependencies. Thus, it is" + print warn_prefix + "recommended to use a tool such as " + good("`revdep-rebuild`") + " (from" + print warn_prefix + "app-portage/gentoolkit) in order to detect such breakage." + print warn_prefix + print warn_prefix + "Also study the list of packages to be cleaned for any obvious" + 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 `") + "." + xterm_titles = "notitles" not in settings.features portdb = trees[settings["ROOT"]]["porttree"].dbapi vartree = trees[settings["ROOT"]]["vartree"]