Skip to content

Commit b12ca37

Browse files
[Buildsystem] Break after purging cache
1 parent ce88021 commit b12ca37

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)