mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
eclass/cargo: Sync with Gentoo
It's from Gentoo commit 541088baec1ffcb943426333891a88c8935c64a6.
This commit is contained in:
parent
de2bc6d982
commit
a510cfdc98
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user