Skip to content

Commit 36a62d0

Browse files
authored
Merge pull request godotengine#101674 from AThousandShips/cache_purge_fix
[Buildsystem] Break after purging cache
2 parents ce88021 + b12ca37 commit 36a62d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

methods.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,9 @@ def clean_cache(cache_path: str, cache_limit: int, verbose: bool) -> None:
847847
except OSError:
848848
print_error(f'Failed to remove cache file "{file}"; skipping.')
849849
count -= 1
850-
if verbose:
850+
if verbose and count:
851851
print_info(f"Purged {count} file{'s' if count else ''} from cache.")
852+
break
852853

853854

854855
def prepare_cache(env) -> None:

0 commit comments

Comments
 (0)