diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2013-07-20 19:03:54 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-07-22 11:40:54 +0100 |
commit | 48b6fc558f69bcb9a1be78711a43cd07de59d584 (patch) | |
tree | 1fb6c00d34bd89a06a17fff60db0335eb44f94d4 | |
parent | c9d2cac60ce601a4a1c859b04d93b0231605ea2a (diff) | |
download | morph-48b6fc558f69bcb9a1be78711a43cd07de59d584.tar.gz |
show short sha of local cached artifact
-rw-r--r-- | morphlib/buildcommand.py | 5 |
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']) |