From 78de2bbb4497e1993a4d428505283750c3c9fa89 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 17 May 2006 05:44:32 +0000 Subject: [PATCH] Print a warning message when AUTOCLEAN is disabled because it's quite dangerous. svn path=/main/trunk/; revision=3366 --- bin/emerge | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/emerge b/bin/emerge index d9e89c39f..c9b8cd899 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2077,6 +2077,10 @@ class depgraph: retval=unmerge("clean", [xsplit[0]]) if not retval: emergelog(" --- AUTOCLEAN: Nothing unmerged.") + else: + portage.writemsg_stdout(colorize("WARN", "WARNING:") + + " AUTOCLEAN is disabled. This can cause serious" + + " problems due to overlapping packages.\n") # Figure out if we need a restart. mysplit=portage.pkgsplit(x[2]) @@ -3419,4 +3423,8 @@ else: if portage.settings["AUTOCLEAN"] and "yes"==portage.settings["AUTOCLEAN"]: print ">>> Auto-cleaning packages..." unmerge("clean", ["world"]) + else: + portage.writemsg_stdout(colorize("WARN", "WARNING:") + + " AUTOCLEAN is disabled. This can cause serious" + + " problems due to overlapping packages.\n") post_emerge() -- 2.26.2