summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2013-07-20 19:03:54 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-07-22 11:40:54 +0100
commit48b6fc558f69bcb9a1be78711a43cd07de59d584 (patch)
tree1fb6c00d34bd89a06a17fff60db0335eb44f94d4 /morphlib/buildcommand.py
parentc9d2cac60ce601a4a1c859b04d93b0231605ea2a (diff)
downloadmorph-48b6fc558f69bcb9a1be78711a43cd07de59d584.tar.gz
show short sha of local cached artifact
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r--morphlib/buildcommand.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index cc70faf9..a7f55b0f 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -210,9 +210,10 @@ class BuildCommand(object):
sha1=a.source.sha1[:7])
if self.is_built(a):
- self.app.status(msg='The %(kind)s is already built',
- kind=a.source.morphology['kind'])
self.cache_artifacts_locally([a])
+ self.app.status(msg='The %(kind)s is cached at %(cache)s',
+ kind=a.source.morphology['kind'],
+ cache=os.path.basename(self.lac.artifact_filename(a))[:7])
else:
self.app.status(msg='Building %(kind)s %(name)s',
name=a.name, kind=a.source.morphology['kind'])