summaryrefslogtreecommitdiff
path: root/eclass/cargo.eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r--eclass/cargo.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 3bdbb5e3ec64..0f2da982f60c 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -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