commit:     59b83b75b4196b49c3ad3b674104cfb66c8ea83b
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  9 00:37:41 2023 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Feb  9 00:38:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59b83b75

cargo.eclass: fix --frozen logic

it was not working as intended.
it should only be passed if GIT_CRATES is defined.

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 de24a5f84318..a92fe97ec502 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -513,7 +513,7 @@ cargo_src_install() {
 
        set -- cargo install $(has --path ${@} || echo --path ./) \
                --root "${ED}/usr" \
-                ${GIT_CRATES:---frozen} \
+               ${GIT_CRATES[@]:+--frozen} \
                $(usex debug --debug "") \
                ${ECARGO_ARGS[@]} "$@"
        einfo "${@}"

Reply via email to