From 184328a735c027673401b082fb7914029d4b0327 Mon Sep 17 00:00:00 2001 From: Paul Gey Date: Wed, 15 Apr 2026 18:36:53 +0200 Subject: [PATCH] Install nightly Rust daily instead of every 2 to 3 days --- bin/lib/installable/rust.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/lib/installable/rust.py b/bin/lib/installable/rust.py index d2480c5d0..77e6f7d7f 100644 --- a/bin/lib/installable/rust.py +++ b/bin/lib/installable/rust.py @@ -84,12 +84,12 @@ def should_install(self) -> bool: dest_dir = self.install_context.destination / self.install_path if os.path.exists(dest_dir): dtime = datetime.fromtimestamp(dest_dir.stat().st_mtime) - # The fudge factor of 30m is to sort of account for the installation time. Else + # The fudge factor of 90m is to sort of account for the installation time. Else # we start up the same time the next day and we get a 23hr58 minute old build and we # don't reinstall. - age = datetime.now() - dtime + timedelta(minutes=30) + age = datetime.now() - dtime + timedelta(minutes=90) self._logger.info("Nightly build %s is %s old", dest_dir, age) - if age.days > self.nightly_install_days: + if age > timedelta(days=self.nightly_install_days): return True return super().should_install()