diff --git a/network/basics/get_url.py b/network/basics/get_url.py index 3ec59c2b08c..54bcedff05f 100644 --- a/network/basics/get_url.py +++ b/network/basics/get_url.py @@ -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)