aboutsummaryrefslogtreecommitdiff
path: root/package/pkg-download.mk
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2014-08-03 19:53:40 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-08-04 20:12:25 +0200
commit5b3880e174983caa8410a3678975bb7233f33d36 (patch)
tree2d1339271db2c7fa3e264468ea46463496606388 /package/pkg-download.mk
parent93e678b767a6c2645cd789b8f2231938668ecc65 (diff)
downloadbuildroot-5b3880e174983caa8410a3678975bb7233f33d36.tar.gz
buildroot-5b3880e174983caa8410a3678975bb7233f33d36.tar.bz2
support/download: convert scp to use the wrapper
This drastically simplifies the scp helper, as it no longer has to deal with atomically saving the downloaded archive. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> (Tested by setting a primary site to 'scp://localhost:/tmp' and running 'make vim-source') Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pkg-download.mk')
-rw-r--r--package/pkg-download.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/pkg-download.mk b/package/pkg-download.mk
index 7878c669b6..d749b54a9b 100644
--- a/package/pkg-download.mk
+++ b/package/pkg-download.mk
@@ -168,8 +168,9 @@ endef
# to prepend the path with a slash: scp://[user@]host:/absolutepath
define DOWNLOAD_SCP
test -e $(DL_DIR)/$(2) || \
- $(EXTRA_ENV) support/download/scp '$(call stripurischeme,$(call qstrip,$(1)))' \
- $(DL_DIR)/$(2) && \
+ $(EXTRA_ENV) support/download/wrapper scp \
+ $(DL_DIR)/$(2) \
+ '$(call stripurischeme,$(call qstrip,$(1)))' && \
$(call VERIFY_HASH,$(PKGDIR)/$($(PKG)_NAME).hash,$(DL_DIR)/$(2))
endef