summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2013-03-16 12:01:37 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2013-03-16 12:01:37 +0000
commit754aa57e5560fbc40e324cda2dfffaa6d6b7b9d2 (patch)
treee4dfd9cfbed08a979ce2f9479e2ef83b5fd7d267 /morphlib/buildcommand.py
parentdc692f92dca17b830099e916311368ac85a3a8b6 (diff)
downloadmorph-754aa57e5560fbc40e324cda2dfffaa6d6b7b9d2.tar.gz
make logs prettier - put chunkname after buildnumber in most cases
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r--morphlib/buildcommand.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index 189db8b0..11bd9c57 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -195,16 +195,16 @@ class BuildCommand(object):
self.app.status_prefix = (
old_prefix + '[Build %d/%d] ' % ((i+1), len(artifacts)))
- self.app.status(msg='Checking if %(kind)s %(name)s needs building',
- kind=a.source.morphology['kind'], name=a.name)
+ self.app.status(msg='[%(name)s] Checking if %(kind)s needs building',
+ name=a.name, kind=a.source.morphology['kind'])
if self.is_built(a):
- self.app.status(msg='The %(kind)s %(name)s is already built',
- kind=a.source.morphology['kind'], name=a.name)
+ self.app.status(msg='[%(name)s] The %(kind)s is already built',
+ name=a.name, kind=a.source.morphology['kind'])
self.cache_artifacts_locally([a])
else:
- self.app.status(msg='Building %(kind)s %(name)s',
- kind=a.source.morphology['kind'], name=a.name)
+ self.app.status(msg='[%(name)s] Building %(kind)s %(name)s',
+ name=a.name, kind=a.source.morphology['kind'])
self.build_artifact(a, build_env)
self.app.status(msg='%(kind)s %(name)s is cached at %(cachepath)s',
@@ -388,7 +388,7 @@ class BuildCommand(object):
def build_and_cache(self, staging_area, artifact, setup_mounts):
'''Build an artifact and put it into the local artifact cache.'''
- self.app.status(msg='Starting actual build: %(name)s',
+ self.app.status(msg='[%(name)s] Starting actual build: %(name)s',
name=artifact.name)
setup_mounts = self.app.settings['staging-chroot']
builder = morphlib.builder2.Builder(