summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2023-02-08 12:41:23 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2023-02-08 12:55:30 -0800
commit69fbd190941eeef66158cd034e506d084032c992 (patch)
tree5046f646b04d635e2c697578d428fcce2d36c2ab /eclass/cargo.eclass
parentdev-util/ruff: new package, add 0.0.243 (diff)
downloadgentoo-69fbd190941eeef66158cd034e506d084032c992.tar.gz
gentoo-69fbd190941eeef66158cd034e506d084032c992.tar.bz2
gentoo-69fbd190941eeef66158cd034e506d084032c992.zip
cargo.eclass: silence declare -p stderr
Otherwise it prints cargo.eclass: line 201: declare: GIT_CRATES: not found Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r--eclass/cargo.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 160f8a24054a..de24a5f84318 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -198,7 +198,7 @@ cargo_crate_uris() {
done
local git_crates_type
- git_crates_type="$(declare -p GIT_CRATES)"
+ git_crates_type="$(declare -p GIT_CRATES 2>&-)"
if [[ ${git_crates_type} == "declare -A "* ]]; then
local crate commit crate_uri crate_dir repo_ext feat_expr