For compatibility with revdep-rebuild, do not allow NOCOLOR=false to override the...
authorZac Medico <zmedico@gentoo.org>
Mon, 26 Jun 2006 21:21:42 +0000 (21:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 26 Jun 2006 21:21:42 +0000 (21:21 -0000)
svn path=/main/trunk/; revision=3669

bin/emerge

index f881858cae3800c86da464395a3bcf61dd6a57ca..f7292d1e2e7bf3166eb75410274d8b9b1304b5e5 100755 (executable)
@@ -3437,7 +3437,11 @@ def emerge_main():
        if settings.get("NOCOLOR","") in ("yes","true"):
                nocolor()
        elif (not sys.stdout.isatty()) and \
-               settings.get("NOCOLOR","") not in ("no","false"):
+               settings.get("NOCOLOR","") != "no":
+               # revdep-rebuild exports NOCOLOR=false, so for now, don't allow
+               # NOCOLOR=false to override the isatty() check.  This can be fixed
+               # in revdep-rebuild by using the --nocolor option when appropriate
+               # instead of exporting NOCOLOR.
                nocolor()
 
        tmpcmdline = sys.argv[1:]