pkg-download: check for already downloaded file in the download wrapper
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 11 Dec 2014 22:52:06 +0000 (23:52 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 11 Dec 2014 22:58:44 +0000 (23:58 +0100)
commit2685937e06d6ede44b88b223e02b38b3ff66a53c
tree2d59bdec9e1e311d4057ad9fd54e0a2d867994ca
parent78b92e5055442e225b10ca6baf98f23a0fa8a102
pkg-download: check for already downloaded file in the download wrapper

Instead of repeating the same test again and again in all our download
rules, just delegate the check for an already downloaded file to the
download wrapper.

This clears up the path for doing the hash checks on a cached file
before the download.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-download.mk
support/download/dl-wrapper