From 84ffe42e52d06fd90a21c93d60dbec7c64b621cf Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Sat, 9 Jul 2022 18:06:50 -0700 Subject: equery: Turn off color when piping is set Bug: https://bugs.gentoo.org/506394 Signed-off-by: Brian Dolbec --- pym/gentoolkit/equery/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pym') diff --git a/pym/gentoolkit/equery/__init__.py b/pym/gentoolkit/equery/__init__.py index cecb5be..56b2caa 100644 --- a/pym/gentoolkit/equery/__init__.py +++ b/pym/gentoolkit/equery/__init__.py @@ -228,6 +228,8 @@ def initialize_configuration(): # set extra wide, should disable wrapping unless # there is some extra long text CONFIG["termWidth"] = 600 + # turn off color + pp.output.nocolor() CONFIG["debug"] = bool(os.getenv("DEBUG", False)) -- cgit v1.2.3