dart: set access time of existing files
Some checks failed
docker-images / multi (., tunasync-scripts, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (., tunasync-scripts, ubuntu-latest) (push) Has been cancelled
docker-images / multi (ftpsync, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (ftpsync, ubuntu-latest) (push) Has been cancelled
docker-images / multi (nix-channels, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (nix-channels, ubuntu-latest) (push) Has been cancelled
docker-images / multi (rubygems-mirror, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (rubygems-mirror, ubuntu-latest) (push) Has been cancelled
docker-images / multi (rustup-mirror, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (rustup-mirror, ubuntu-latest) (push) Has been cancelled
docker-images / multi (shadowmire, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (shadowmire, ubuntu-latest) (push) Has been cancelled
docker-images / multi (tsumugu, ubuntu-24.04-arm) (push) Has been cancelled
docker-images / multi (tsumugu, ubuntu-latest) (push) Has been cancelled
docker-images / merge (push) Has been cancelled

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
Shengqi Chen 2025-09-10 02:26:01 +08:00
parent f00488b1b0
commit 1506a1dd70
No known key found for this signature in database

View File

@ -87,6 +87,7 @@ def download_pkg_ver(
logger.error(f"Failed to download {url} to {dst_file.as_posix()}: {e}")
return False
else:
os.utime(dst_file, (time.timestamp(), time.timestamp())) # update access and modified time
logger.info(f"File {dst_file.as_posix()} already exists, skipping download")
return True