From 59b83b75b4196b49c3ad3b674104cfb66c8ea83b Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Wed, 8 Feb 2023 16:37:41 -0800 Subject: 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 --- eclass/cargo.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass') 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 "${@}" -- cgit v1.2.3-65-gdbad