From 2b806971a322b72600dcd9c8116e7a763df202a8 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 8 Jul 2025 17:53:29 +0000 Subject: [PATCH] Avoid datetime overflow, cache deb for a year instead of 300k years --- cmdeploy/src/cmdeploy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdeploy/src/cmdeploy/__init__.py b/cmdeploy/src/cmdeploy/__init__.py index 20558d06..ea06ab41 100644 --- a/cmdeploy/src/cmdeploy/__init__.py +++ b/cmdeploy/src/cmdeploy/__init__.py @@ -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)