caches: Suppress unnecessary output when cleaning caches.

This should make the cache cleaning process a lot less spammy.
This commit is contained in:
Tim Abbott
2017-09-25 16:12:29 -07:00
parent 703b87c116
commit 0f19e501a6
3 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,6 @@ def main():
# type: () -> None
parse_cache_script_args("This script cleans unused zulip caches.")
os.chdir(ZULIP_PATH)
print("Starting cache cleaning scripts...")
subprocess.check_call(["./scripts/lib/clean-venv-cache"] + sys.argv[1:])
subprocess.check_call(["./scripts/lib/clean-npm-cache"] + sys.argv[1:])
subprocess.check_call(["./scripts/lib/clean-emoji-cache"] + sys.argv[1:])

View File

@@ -242,7 +242,8 @@ def purge_unused_caches(caches_dir, caches_in_use, cache_type, args):
may_be_perform_purging(
caches_to_purge, caches_to_keep, cache_type, args.dry_run, args.verbose)
print("Done!\n")
if args.verbose:
print("Done!")
def generate_sha1sum_emoji(zulip_path):
# type: (Text) -> Text