projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a176865
)
cargo.eclass: honor NOCOLOR setting
author
Georgy Yakovlev
<gyakovlev@gentoo.org>
Fri, 27 Dec 2019 02:23:41 +0000
(18:23 -0800)
committer
Georgy Yakovlev
<gyakovlev@gentoo.org>
Sat, 28 Dec 2019 04:59:11 +0000
(20:59 -0800)
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
eclass/cargo.eclass
patch
|
blob
|
history
diff --git
a/eclass/cargo.eclass
b/eclass/cargo.eclass
index d0288ed2edc902f53abcba54f2db2f7dcd400050..86715b83b88c0a09415833fa78f7cfa9002b4282 100644
(file)
--- 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