summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2017-05-16 15:07:11 -0400
committerMike Frysinger <vapier@gentoo.org>2017-05-16 15:10:32 -0400
commit5a3cac174fd86bfb439d155a15900c6315dd56cc (patch)
tree2b938db73e6bfb1650e2af6ebbabbf1b8ce9f46b
parentsys-apps/less: add flv & mkv to video list (diff)
downloadgentoo-5a3cac174fd86bfb439d155a15900c6315dd56cc.tar.gz
gentoo-5a3cac174fd86bfb439d155a15900c6315dd56cc.tar.bz2
gentoo-5a3cac174fd86bfb439d155a15900c6315dd56cc.zip
cargo.eclass: fix quoting/arg handling
-rw-r--r--eclass/cargo.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 32d04a2d559b..b08aa9e28aae 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -29,12 +29,13 @@ ECARGO_VENDOR="${ECARGO_HOME}/gentoo"
# @DESCRIPTION:
# Generates the URIs to put in SRC_URI to help fetch dependencies.
cargo_crate_uris() {
- for crate in $*; do
+ local crate
+ for crate in "$@"; do
local name version url
name="${crate%-*}"
version="${crate##*-}"
url="https://crates.io/api/v1/crates/${name}/${version}/download -> ${crate}.crate"
- echo $url
+ echo "${url}"
done
}
@@ -93,7 +94,7 @@ cargo_src_unpack() {
cargo_gen_config() {
debug-print-function ${FUNCNAME} "$@"
- cat <<- EOF > ${ECARGO_HOME}/config
+ cat <<- EOF > "${ECARGO_HOME}/config"
[source.gentoo]
directory = "${ECARGO_VENDOR}"