diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-05-19 09:55:56 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-05-19 09:55:56 +0000 |
commit | 715675785e93a55c3a7579005868770dbf984d27 (patch) | |
tree | 1abc9652e48e9f46a94db52a29f363103477224a | |
parent | 3d4865f475f615aae931086cd0d0ba6e29136299 (diff) | |
download | portage-715675785e93a55c3a7579005868770dbf984d27.tar.gz portage-715675785e93a55c3a7579005868770dbf984d27.tar.bz2 portage-715675785e93a55c3a7579005868770dbf984d27.zip |
In order to help protect users, make AUTOCLEAN case insensitive.
svn path=/main/trunk/; revision=3378
-rwxr-xr-x | bin/emerge | 10 |
1 files changed, 10 insertions, 0 deletions
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() |