commit: 69fbd190941eeef66158cd034e506d084032c992
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 8 20:41:23 2023 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Wed Feb 8 20:55:30 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69fbd190
cargo.eclass: silence declare -p stderr
Otherwise it prints
cargo.eclass: line 201: declare: GIT_CRATES: not found
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
eclass/cargo.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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