From db22d7950ca75985d790c85fd104ae59e58bc610 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 11 Oct 2010 19:29:21 -0700 Subject: Fix portageq to handle NOCOLOR. --- bin/portageq | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.3-1-g7c22