From b12ca37be6f494e5a8894f447c82dd27a8aa5ac3 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Fri, 17 Jan 2025 12:19:18 +0100 Subject: [PATCH] [Buildsystem] Break after purging cache --- methods.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/methods.py b/methods.py index 2e3673a1f5b..0d1e78c7fb2 100644 --- a/methods.py +++ b/methods.py @@ -847,8 +847,9 @@ def clean_cache(cache_path: str, cache_limit: int, verbose: bool) -> None: except OSError: print_error(f'Failed to remove cache file "{file}"; skipping.') count -= 1 - if verbose: + if verbose and count: print_info(f"Purged {count} file{'s' if count else ''} from cache.") + break def prepare_cache(env) -> None: