From 4dbbde9eaac367c982ea726ab24911c2a8de6597 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 23 Jan 2015 19:29:03 +0100 Subject: [PATCH] venv: Better cache output. --- scripts/init_venv.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/init_venv.py b/scripts/init_venv.py index 9a3ceb746..ede693310 100644 --- a/scripts/init_venv.py +++ b/scripts/init_venv.py @@ -210,8 +210,9 @@ def create_venv(): def restore_cache(cache_path): """Restore a cache if one is present and --cache is given.""" - utils.print_title("Restoring cache") if g_args.cache: + utils.print_title("Restoring cache") + print("Restoring {} to {}...".format(cache_path, g_args.path)) try: shutil.rmtree(g_args.path) except FileNotFoundError: @@ -227,8 +228,9 @@ def restore_cache(cache_path): def save_cache(cache_path): """Save the cache if --cache is given.""" - utils.print_title("Saving cache") if g_args.cache: + utils.print_title("Saving cache") + print("Saving {} to {}...".format(g_args.path, cache_path)) try: shutil.rmtree(cache_path) except FileNotFoundError: