diff options
author | Mike Frysinger <vapier@chromium.org> | 2017-05-16 15:07:11 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2017-05-16 15:10:32 -0400 |
commit | 5a3cac174fd86bfb439d155a15900c6315dd56cc (patch) | |
tree | 2b938db73e6bfb1650e2af6ebbabbf1b8ce9f46b | |
parent | sys-apps/less: add flv & mkv to video list (diff) | |
download | gentoo-5a3cac174fd86bfb439d155a15900c6315dd56cc.tar.gz gentoo-5a3cac174fd86bfb439d155a15900c6315dd56cc.tar.bz2 gentoo-5a3cac174fd86bfb439d155a15900c6315dd56cc.zip |
cargo.eclass: fix quoting/arg handling
-rw-r--r-- | eclass/cargo.eclass | 7 |
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}" |