[Buildsystem] Break after purging cache

This commit is contained in:
A Thousand Ships 2025-01-17 12:19:18 +01:00
parent ce88021aa0
commit b12ca37be6
No known key found for this signature in database
GPG key ID: 651D4293F3B6484F

View file

@ -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: