From: Zac Medico Date: Tue, 12 Oct 2010 02:29:21 +0000 (-0700) Subject: Fix portageq to handle NOCOLOR. X-Git-Tag: v2.2_rc93~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=188fc54469fefb0d515d4881f24fee433bf8f086;p=portage.git Fix portageq to handle NOCOLOR. --- diff --git a/bin/portageq b/bin/portageq index d7ea72bf5..547a70d6c 100755 --- a/bin/portageq +++ b/bin/portageq @@ -660,6 +660,11 @@ else: pass def main(): + + nocolor = os.environ.get('NOCOLOR') + if nocolor in ('yes', 'true'): + portage.output.nocolor() + if "-h" in sys.argv or "--help" in sys.argv: usage(sys.argv) sys.exit(os.EX_OK)