summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-09-15 03:04:39 -0500
committerroot <root@alpha.trunkmasters.com>2026-09-15 03:04:39 -0500
commitc012d247f03a893c117c88f73bcf6cb6494dcd22 (patch)
tree89fc51e9b45239a8e4233e466f4746f81ec6718f /eclass
parentd09313d7f2546bde376a20ff739a5e90cb229e25 (diff)
downloadbaldeagleos-repo-c012d247f03a893c117c88f73bcf6cb6494dcd22.tar.gz
baldeagleos-repo-c012d247f03a893c117c88f73bcf6cb6494dcd22.tar.xz
baldeagleos-repo-c012d247f03a893c117c88f73bcf6cb6494dcd22.zip
Adding metadata
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cargo.eclass29
1 files changed, 23 insertions, 6 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 185531490a25..c6415e4f1484 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -518,10 +518,10 @@ cargo_update_crates () {
cargo_env "${@}" || die "Failed to update crates"
}
-# @FUNCTION: cargo_src_unpack
+# @FUNCTION: cargo_crate_unpack
# @DESCRIPTION:
-# Unpacks the package and the cargo registry.
-cargo_src_unpack() {
+# Unpack the *.crate files from ${A}.
+cargo_crate_unpack() {
debug-print-function ${FUNCNAME} "$@"
mkdir -p "${ECARGO_VENDOR}" "${S}" || die
@@ -533,9 +533,6 @@ cargo_src_unpack() {
*.crate)
crates+=( "${archive}" )
;;
- *)
- unpack "${archive}"
- ;;
esac
done
@@ -572,7 +569,27 @@ cargo_src_unpack() {
eqawarn "'pycargoebuild --crate-tarball' to create one."
fi
fi
+}
+
+# @FUNCTION: cargo_src_unpack
+# @DESCRIPTION:
+# Unpacks the package and the cargo registry.
+cargo_src_unpack() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ mkdir -p "${ECARGO_VENDOR}" "${S}" || die
+ local archive
+ for archive in ${A}; do
+ case "${archive}" in
+ *.crate)
+ ;;
+ *)
+ unpack "${archive}"
+ ;;
+ esac
+ done
+ cargo_crate_unpack
cargo_gen_config
}