mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
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>
This commit is contained in:
parent
573f8c750f
commit
5d2a018ddf
@ -96,6 +96,7 @@ define DOWNLOAD
|
|||||||
BR_NO_CHECK_HASH_FOR=$(notdir $(call qstrip,$(1)))) \
|
BR_NO_CHECK_HASH_FOR=$(notdir $(call qstrip,$(1)))) \
|
||||||
$(EXTRA_ENV) $(FLOCK) $(DL_WRAPPER) \
|
$(EXTRA_ENV) $(FLOCK) $(DL_WRAPPER) \
|
||||||
-c '$($(PKG)_DL_VERSION)' \
|
-c '$($(PKG)_DL_VERSION)' \
|
||||||
|
-d '$($(PKG)_DL_DIR)' \
|
||||||
-f '$(notdir $(1))' \
|
-f '$(notdir $(1))' \
|
||||||
-H '$(PKGDIR)/$($(PKG)_RAWNAME).hash' \
|
-H '$(PKGDIR)/$($(PKG)_RAWNAME).hash' \
|
||||||
-n '$($(PKG)_BASENAME_RAW)' \
|
-n '$($(PKG)_BASENAME_RAW)' \
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
# We want to catch any unexpected failure, and exit immediately.
|
# We want to catch any unexpected failure, and exit immediately.
|
||||||
set -e
|
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() {
|
main() {
|
||||||
local OPT OPTARG
|
local OPT OPTARG
|
||||||
@ -27,10 +27,11 @@ main() {
|
|||||||
local -a uris
|
local -a uris
|
||||||
|
|
||||||
# Parse our options; anything after '--' is for the backend
|
# 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
|
case "${OPT}" in
|
||||||
h) help; exit 0;;
|
h) help; exit 0;;
|
||||||
c) cset="${OPTARG}";;
|
c) cset="${OPTARG}";;
|
||||||
|
d) dl_dir="${OPTARG}";;
|
||||||
o) output="${OPTARG}";;
|
o) output="${OPTARG}";;
|
||||||
n) raw_base_name="${OPTARG}";;
|
n) raw_base_name="${OPTARG}";;
|
||||||
N) base_name="${OPTARG}";;
|
N) base_name="${OPTARG}";;
|
||||||
@ -109,6 +110,7 @@ main() {
|
|||||||
if ! "${OLDPWD}/support/download/${backend}" \
|
if ! "${OLDPWD}/support/download/${backend}" \
|
||||||
$([ -n "${urlencode}" ] && printf %s '-e') \
|
$([ -n "${urlencode}" ] && printf %s '-e') \
|
||||||
-c "${cset}" \
|
-c "${cset}" \
|
||||||
|
-d "${dl_dir}" \
|
||||||
-n "${raw_base_name}" \
|
-n "${raw_base_name}" \
|
||||||
-N "${raw_name}" \
|
-N "${raw_name}" \
|
||||||
-f "${filename}" \
|
-f "${filename}" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user