diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-08-03 19:53:34 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-08-04 20:12:24 +0200 |
commit | b5a9470bdfeccb50170d279aedc541a2c665770c (patch) | |
tree | e186305a4d68ea9e16754dd3ab098bebaa14185e /support/scripts/check-kernel-headers.sh | |
parent | 79c77a6e7fdf162e5609d46b00c99a7d177a381b (diff) | |
download | buildroot-b5a9470bdfeccb50170d279aedc541a2c665770c.tar.gz buildroot-b5a9470bdfeccb50170d279aedc541a2c665770c.zip |
support/download: add download wrapper
The download wrapper is responsible for ensuring the atomicity
of saving into $(BR2_DL_DIR).
It calls the appropriate download helper, telling it to save the
downloaded content to a temporary file in $(BUILD_DIR) (so it does
not clutter $(BR2_DL_DIR) with partial, failed downloads.
Then, only if the download helper was successful, does the wrapper
save the downloaded content to the final location, yet still in a
temporary file, and finally atomically renames it to the final output
file.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/scripts/check-kernel-headers.sh')
0 files changed, 0 insertions, 0 deletions