Force download if checksums do not match (#4262)

reviewable/pr18780/r1
Martin Matuška 8 years ago committed by René Moser
parent 2f3fdc4975
commit f07e3d297f

@ -365,6 +365,11 @@ def main():
mtime = os.path.getmtime(dest)
last_mod_time = datetime.datetime.utcfromtimestamp(mtime)
# If the checksum does not match we have to force the download
# because last_mod_time may be newer than on remote
if checksum_mismatch:
force = True
# download to tmpsrc
tmpsrc, info = url_get(module, url, dest, use_proxy, last_mod_time, force, timeout, headers, tmp_dest)

Loading…
Cancel
Save