Avoid datetime overflow, cache deb for a year instead of 300k years

This commit is contained in:
link2xt
2025-07-08 17:53:29 +00:00
parent 94060ff254
commit 2b806971a3

View File

@@ -346,7 +346,7 @@ def _install_dovecot_package(package: str, arch: str):
src=url,
dest=deb_filename,
sha256sum=sha256,
cache_time=9999999999999, # never redownload the package
cache_time=60 * 60 * 24 * 365, # cache the .deb for a year,
)
apt.deb(name=f"Install dovecot-{package}", src=deb_filename)