From a4d2dc856c5e8a39efca5817946dff1b722f038d Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 16 Feb 2022 21:08:13 +0200 Subject: [PATCH] Do not check for "system prune" for newest PlatformIO Core installation --- platformio/maintenance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/maintenance.py b/platformio/maintenance.py index 82aa4a0f..c08a88d6 100644 --- a/platformio/maintenance.py +++ b/platformio/maintenance.py @@ -331,7 +331,7 @@ def check_internal_updates(ctx, what): # pylint: disable=too-many-branches def check_prune_system(): last_check = app.get_state_item("last_check", {}) interval = 30 * 3600 * 24 # 1 time per month - if (time() - interval) < last_check.get("prune_system", 0): + if (time() - interval) < last_check.get("prune_system", time()): return last_check["prune_system"] = int(time())