summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-02 15:14:42 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-10 13:52:27 +0000
commitbb782e4604f66a781f5f1392ccbb9df08f4ddf82 (patch)
tree723d4e3947332625239f1d043012814dbfdc01dd
parent2cfee93ef782ad9891deabb1ede524e84442bcba (diff)
downloadmorph-bb782e4604f66a781f5f1392ccbb9df08f4ddf82.tar.gz
fixup: Move fetching to local cache message
-rw-r--r--morphlib/buildcommand.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index cab38395..c3b78e2b 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -423,9 +423,6 @@ class BuildCommand(object):
# module into morphlib.remoteartififactcache first.
to_fetch = []
if not self.lac.has(artifact):
- self.app.status(
- msg='Fetching to local cache: artifact %(name)s',
- name=artifact.name)
self.lac.copy_from_remote(artifact, self.rac)
if artifact.source.morphology.needs_artifact_metadata_cached:
@@ -435,6 +432,9 @@ class BuildCommand(object):
self.lac.put_artifact_metadata(artifact, 'meta')))
if len(to_fetch) > 0:
+ self.app.status(
+ msg='Fetching to local cache: artifact %(name)s',
+ name=artifact.name)
fetch_files(to_fetch)
def create_staging_area(self, build_env, use_chroot=True, extra_env={},