eclass/cargo: Sync with Gentoo

It's from Gentoo commit 541088baec1ffcb943426333891a88c8935c64a6.
This commit is contained in:
Flatcar Buildbot 2024-02-19 07:13:26 +00:00 committed by Krzesimir Nowak
parent de2bc6d982
commit a510cfdc98

View File

@ -193,6 +193,11 @@ _cargo_set_crate_uris() {
fi
url="https://crates.io/api/v1/crates/${name}/${version}/download -> ${name}-${version}.crate"
CARGO_CRATE_URIS+="${url} "
# when invoked by pkgbump, avoid fetching all the crates
# we just output the first one, to avoid creating empty groups
# in SRC_URI
[[ ${PKGBUMPING} == ${PVR} ]] && return
done
if declare -p GIT_CRATES &>/dev/null; then