aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pym/gentoolkit/equery')
-rw-r--r--pym/gentoolkit/equery/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/gentoolkit/equery/__init__.py b/pym/gentoolkit/equery/__init__.py
index ae760c1..a83d31a 100644
--- a/pym/gentoolkit/equery/__init__.py
+++ b/pym/gentoolkit/equery/__init__.py
@@ -1,4 +1,4 @@
-# Copyright(c) 2009, Gentoo Foundation
+# Copyright(c) 2009-2023 Gentoo Authors
#
# Licensed under the GNU General Public License, v2
@@ -218,7 +218,7 @@ def initialize_configuration():
# Guess color output
if (
CONFIG["color"] == -1
- and os.getenv("NOCOLOR") in ("yes", "true")
+ and (os.getenv("NO_COLOR") or os.getenv("NOCOLOR") in ("yes", "true"))
or CONFIG["color"] == 0
):
pp.output.nocolor()