In order to help protect users, make AUTOCLEAN case insensitive.
authorZac Medico <zmedico@gentoo.org>
Fri, 19 May 2006 09:55:56 +0000 (09:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 19 May 2006 09:55:56 +0000 (09:55 -0000)
svn path=/main/trunk/; revision=3378

bin/emerge

index f4a5f95ff4388fd2b2913b76f84b376214ed0e72..3b1146b3162f9ea8399774f881baa9f94a650ebb 100755 (executable)
@@ -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()