summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-17 05:44:32 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-17 05:44:32 +0000
commit78de2bbb4497e1993a4d428505283750c3c9fa89 (patch)
treec8aca461eebd36daf4ff2ae04bce0b7c5b0daea4
parent8f168c17dc48aec4b666d408c00595bf80805293 (diff)
downloadportage-78de2bbb4497e1993a4d428505283750c3c9fa89.tar.gz
portage-78de2bbb4497e1993a4d428505283750c3c9fa89.tar.bz2
portage-78de2bbb4497e1993a4d428505283750c3c9fa89.zip
Print a warning message when AUTOCLEAN is disabled because it's quite dangerous.
svn path=/main/trunk/; revision=3366
-rwxr-xr-xbin/emerge8
1 files changed, 8 insertions, 0 deletions
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()