summaryrefslogtreecommitdiffstats
path: root/support/download/dl-wrapper
diff options
context:
space:
mode:
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>2018-04-02 16:58:01 +0200
committerPeter Korsgaard <peter@korsgaard.com>2018-04-02 17:48:56 +0200
commit5d2a018ddf950b53d1d50d09d3af92849d8f5994 (patch)
treee0283626ef45c1e14196132cc3f82efdea24e3c0 /support/download/dl-wrapper
parent573f8c750fbd18f2f2de23bfdc8e360ed30a8687 (diff)
downloadbuildroot-5d2a018ddf950b53d1d50d09d3af92849d8f5994.tar.gz
buildroot-5d2a018ddf950b53d1d50d09d3af92849d8f5994.zip
download: add missing '-d' option
The infrastructure needs to give the 'dl_dir' to the dl-wrapper which in its turn needs to give it to the helper. It will only be used by the 'git' helper as of now. Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support/download/dl-wrapper')
-rwxr-xr-xsupport/download/dl-wrapper6
1 files changed, 4 insertions, 2 deletions
diff --git a/support/download/dl-wrapper b/support/download/dl-wrapper
index cd903f92d9..af2950ac3b 100755
--- a/support/download/dl-wrapper
+++ b/support/download/dl-wrapper
@@ -19,7 +19,7 @@
# We want to catch any unexpected failure, and exit immediately.
set -e
-export BR_BACKEND_DL_GETOPTS=":hc:o:n:N:H:ru:qf:e"
+export BR_BACKEND_DL_GETOPTS=":hc:d:o:n:N:H:ru:qf:e"
main() {
local OPT OPTARG
@@ -27,10 +27,11 @@ main() {
local -a uris
# Parse our options; anything after '--' is for the backend
- while getopts ":hc:o:n:N:H:rf:u:q" OPT; do
+ while getopts ":hc:d:o:n:N:H:rf:u:q" OPT; do
case "${OPT}" in
h) help; exit 0;;
c) cset="${OPTARG}";;
+ d) dl_dir="${OPTARG}";;
o) output="${OPTARG}";;
n) raw_base_name="${OPTARG}";;
N) base_name="${OPTARG}";;
@@ -109,6 +110,7 @@ main() {
if ! "${OLDPWD}/support/download/${backend}" \
$([ -n "${urlencode}" ] && printf %s '-e') \
-c "${cset}" \
+ -d "${dl_dir}" \
-n "${raw_base_name}" \
-N "${raw_name}" \
-f "${filename}" \
OpenPOWER on IntegriCloud