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:42 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-08-04 20:12:25 +0200
commit9a8470c9ee4dab3b872280656316c08a0d573d53 (patch)
tree9cb7fda1894eda17d311bba2fa62b7527b849710 /package/pkg-download.mk
parenta92290aa20a446b3f01822f0637a2ef7a4846c0b (diff)
downloadbuildroot-9a8470c9ee4dab3b872280656316c08a0d573d53.tar.gz
buildroot-9a8470c9ee4dab3b872280656316c08a0d573d53.tar.bz2
support/download: convert wget to use the wrapper
This drastically simplifies the wget 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 running 'make busybox-source') Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pkg-download.mk')
-rw-r--r--package/pkg-download.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/pkg-download.mk b/package/pkg-download.mk
index c23dcfac91..0761736046 100644
--- a/package/pkg-download.mk
+++ b/package/pkg-download.mk
@@ -208,7 +208,9 @@ endef
define DOWNLOAD_WGET
test -e $(DL_DIR)/$(2) || \
- $(EXTRA_ENV) support/download/wget '$(call qstrip,$(1))' $(DL_DIR)/$(2) && \
+ $(EXTRA_ENV) support/download/wrapper wget \
+ $(DL_DIR)/$(2) \
+ '$(call qstrip,$(1))' && \
$(call VERIFY_HASH,$(PKGDIR)/$($(PKG)_NAME).hash,$(DL_DIR)/$(2))
endef