summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2022-07-09 18:06:50 -0700
committerBrian Dolbec <dolsen@gentoo.org>2022-07-09 18:06:50 -0700
commit84ffe42e52d06fd90a21c93d60dbec7c64b621cf (patch)
tree1d18828e9a1d2e5d0e2a147c267ccf5eebfe9e59 /pym
parent0db35305e9ff05ef792ae18b9721772f4bdd3efb (diff)
downloadgentoolkit-84ffe42e52d06fd90a21c93d60dbec7c64b621cf.tar.gz
equery: Turn off color when piping is set
Bug: https://bugs.gentoo.org/506394 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
Diffstat (limited to 'pym')
-rw-r--r--pym/gentoolkit/equery/__init__.py2
1 files changed, 2 insertions, 0 deletions
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))