summaryrefslogtreecommitdiffstats
path: root/support/download/dl-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'support/download/dl-wrapper')
-rwxr-xr-xsupport/download/dl-wrapper6
1 files changed, 5 insertions, 1 deletions
diff --git a/support/download/dl-wrapper b/support/download/dl-wrapper
index f0cdd735b4..cced8f6a4c 100755
--- a/support/download/dl-wrapper
+++ b/support/download/dl-wrapper
@@ -49,7 +49,11 @@ main() {
# If the output file already exists, do not download it again
if [ -e "${output}" ]; then
- exit 0
+ if support/download/check-hash "${hfile}" "${output}" "${output##*/}"; then
+ exit 0
+ fi
+ rm -f "${output}"
+ printf "Re-downloading '%s'...\n" "${output##*/}"
fi
# tmpd is a temporary directory in which backends may store intermediate
OpenPOWER on IntegriCloud