core/download: look for archives in the global download dir first
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 2 Apr 2018 15:13:58 +0000 (17:13 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 2 Apr 2018 15:48:56 +0000 (17:48 +0200)
commite80d1d0af448c33f93a9a913cd0a34c406a29cf4
tree3974c768ed01b40b7971f506540711052cf86737
parent5d2a018ddf950b53d1d50d09d3af92849d8f5994
core/download: look for archives in the global download dir first

For existing setups, the global donload directory may have a lot of the
required archives, so look into there before attempting a download.

We simply hard-link them if found there and not in the new per-package
loaction. Then we resume the existing procedure (which means the new
hardlink will get removed if it happened to not match the hash).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-download.mk
support/download/dl-wrapper