From c1d73faab8d3a9ad50e76c57d41ccbf266a88048 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 10 Mar 2014 17:17:01 +0000 Subject: Reduce spam from setting up staging area Make the message "Installing chunk..." be chatty, i.e., only displayed when the user turns verbosity higher. Most of the time the chunk is already unpacked in the cache, so installing it takes a fraction of a second. Add a new message, at default verbosity, when a chunk needs to be unpacked. This can take a while, so a message is appropriate, so the user knows what is happening. --- morphlib/buildcommand.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'morphlib/buildcommand.py') diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index 137c63b4..862ae715 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -454,10 +454,11 @@ class BuildCommand(object): if artifact.source.build_mode == 'bootstrap': if not self.in_same_stratum(artifact, target_artifact): continue - self.app.status(msg='Installing chunk %(chunk_name)s ' - 'from cache %(cache)s', - chunk_name=artifact.name, - cache=artifact.cache_key[:7]) + self.app.status( + msg='Installing chunk %(chunk_name)s from cache %(cache)s', + chunk_name=artifact.name, + cache=artifact.cache_key[:7], + chatty=True) handle = self.lac.get(artifact) staging_area.install_artifact(handle) -- cgit v1.2.1