commit:     f695ea5bb3dedc9894b3d04076e1a318a2760558
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 27 02:23:41 2019 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Sat Dec 28 04:59:11 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f695ea5b

cargo.eclass: honor NOCOLOR setting

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 eclass/cargo.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index d0288ed2edc..86715b83b88 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -153,6 +153,8 @@ cargo_gen_config() {
        [term]
        verbose = true
        EOF
+       # honor NOCOLOR setting
+       [[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && echo "color = 
'never'" >> "${ECARGO_HOME}/config"
 }
 
 # @FUNCTION: cargo_src_compile

Reply via email to