commit: 5a3cac174fd86bfb439d155a15900c6315dd56cc
Author: Mike Frysinger <vapier <AT> chromium <DOT> org>
AuthorDate: Tue May 16 19:07:11 2017 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue May 16 19:10:32 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a3cac17
cargo.eclass: fix quoting/arg handling
eclass/cargo.eclass | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 32d04a2d559..b08aa9e28aa 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}"