mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 06:26:57 +02:00
eclass/cargo: Sync with Gentoo
It's from Gentoo commit 8c2aba680ad0a767829c1133189792081671f54d.
This commit is contained in:
parent
c082fea59e
commit
e026a91dc3
@ -603,12 +603,12 @@ cargo_live_src_unpack() {
|
|||||||
export CARGO_HOME="${ECARGO_REGISTRY_DIR}"
|
export CARGO_HOME="${ECARGO_REGISTRY_DIR}"
|
||||||
|
|
||||||
# Absence of quotes around offline arg is intentional, as cargo bails out if it encounters ''
|
# Absence of quotes around offline arg is intentional, as cargo bails out if it encounters ''
|
||||||
einfo "cargo fetch ${offline:+--offline}"
|
einfo "${CARGO} fetch ${offline:+--offline}"
|
||||||
cargo fetch ${offline:+--offline} || die #nowarn
|
"${CARGO}" fetch ${offline:+--offline} || die #nowarn
|
||||||
|
|
||||||
# Let cargo copy all required crates to "${WORKDIR}" for offline use in later phases.
|
# Let cargo copy all required crates to "${WORKDIR}" for offline use in later phases.
|
||||||
einfo "cargo vendor ${offline:+--offline} ${ECARGO_VENDOR}"
|
einfo "${CARGO} vendor ${offline:+--offline} ${ECARGO_VENDOR}"
|
||||||
cargo vendor ${offline:+--offline} "${ECARGO_VENDOR}" || die #nowarn
|
"${CARGO}" vendor ${offline:+--offline} "${ECARGO_VENDOR}" || die #nowarn
|
||||||
|
|
||||||
# Users may have git checkouts made by cargo.
|
# Users may have git checkouts made by cargo.
|
||||||
# While cargo vendors the sources, it still needs git checkout to be present.
|
# While cargo vendors the sources, it still needs git checkout to be present.
|
||||||
|
Loading…
Reference in New Issue
Block a user