summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2019-12-26 18:23:41 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-12-27 20:59:11 -0800
commitf695ea5bb3dedc9894b3d04076e1a318a2760558 (patch)
tree1f08ee73f7a3dcdb2eb44f911805582243f7479f /eclass/cargo.eclass
parentcargo.eclass: make cargo verbosity configurable (diff)
downloadgentoo-f695ea5bb3dedc9894b3d04076e1a318a2760558.tar.gz
gentoo-f695ea5bb3dedc9894b3d04076e1a318a2760558.tar.bz2
gentoo-f695ea5bb3dedc9894b3d04076e1a318a2760558.zip
cargo.eclass: honor NOCOLOR setting
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r--eclass/cargo.eclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index d0288ed2edc9..86715b83b88c 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