Skip to content

Commit

Permalink
Merge pull request godotengine#101674 from AThousandShips/cache_purge…
Browse files Browse the repository at this point in the history
…_fix

[Buildsystem] Break after purging cache
  • Loading branch information
akien-mga authored Jan 17, 2025
2 parents ce88021 + b12ca37 commit 36a62d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 36a62d0

Please sign in to comment.