summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2023-02-08 16:37:41 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2023-02-08 16:38:32 -0800
commit59b83b75b4196b49c3ad3b674104cfb66c8ea83b (patch)
tree85764cf69a7d740bf0ff7e24ccd799d2d63c816c /eclass
parentnet-p2p/transmission: drop 4.0.0_beta3 (diff)
downloadgentoo-59b83b75b4196b49c3ad3b674104cfb66c8ea83b.tar.gz
gentoo-59b83b75b4196b49c3ad3b674104cfb66c8ea83b.tar.bz2
gentoo-59b83b75b4196b49c3ad3b674104cfb66c8ea83b.zip
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@gentoo.org>
Diffstat (limited to '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 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 "${@}"