From: Zac Medico Date: Fri, 19 May 2006 09:55:56 +0000 (-0000) Subject: In order to help protect users, make AUTOCLEAN case insensitive. X-Git-Tag: v2.1_rc2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=715675785e93a55c3a7579005868770dbf984d27;p=portage.git In order to help protect users, make AUTOCLEAN case insensitive. svn path=/main/trunk/; revision=3378 --- diff --git a/bin/emerge b/bin/emerge index f4a5f95ff..3b1146b31 100755 --- a/bin/emerge +++ b/bin/emerge @@ -80,6 +80,16 @@ if "candy" in portage.settings.features: spinner = spinner_msgs[int(time.time()*100)%len(spinner_msgs)] update_spinner = update_scroll_spinner +# To enhance usability, make some vars case insensitive by forcing them to +# lower case. +portage.settings.unlock() +for myvar in ("AUTOCLEAN", "NOCOLOR"): + if myvar in portage.settings: + portage.settings[myvar] = portage.settings[myvar].lower() + portage.settings.backup_changes(myvar) +portage.settings.lock() +del myvar + if (not sys.stdout.isatty()) or (portage.settings["NOCOLOR"] in ["yes","true"]): nocolor()