mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 22:51:03 +02:00
eclass/cargo: Sync with Gentoo
It's from Gentoo commit c7f6ebbe26db3f2c9dd656438664109ec1329ab1.
This commit is contained in:
parent
bf6935377b
commit
8c02df13bb
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: cargo.eclass
|
# @ECLASS: cargo.eclass
|
||||||
@ -331,6 +331,9 @@ cargo_src_unpack() {
|
|||||||
for archive in ${A}; do
|
for archive in ${A}; do
|
||||||
case "${archive}" in
|
case "${archive}" in
|
||||||
*.crate)
|
*.crate)
|
||||||
|
# when called by pkgdiff-mg, do not unpack crates
|
||||||
|
[[ ${PKGBUMPING} == ${PVR} ]] && continue
|
||||||
|
|
||||||
ebegin "Loading ${archive} into Cargo registry"
|
ebegin "Loading ${archive} into Cargo registry"
|
||||||
tar -xf "${DISTDIR}"/${archive} -C "${ECARGO_VENDOR}/" || die
|
tar -xf "${DISTDIR}"/${archive} -C "${ECARGO_VENDOR}/" || die
|
||||||
# generate sha256sum of the crate itself as cargo needs this
|
# generate sha256sum of the crate itself as cargo needs this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user