summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
authorRic Holland <richard.holland@codethink.co.uk>2013-03-05 14:43:56 +0000
committerRic Holland <richard.holland@codethink.co.uk>2013-03-05 18:00:40 +0000
commitf3f62f0128788c9d5270f43cb97cb218609c894a (patch)
tree641bb50be83b7a62b3f3472a6e0238f768f63158 /morphlib/buildcommand.py
parentff7980a4ddadbcad93acecaa94cdcfa2c6c8c244 (diff)
downloadmorph-f3f62f0128788c9d5270f43cb97cb218609c894a.tar.gz
Improve "morph build" progress messages:
Added chunk name in status when starting build Added the name of parent artifact (chunk that installing chunk was installed for) to start of build message
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r--morphlib/buildcommand.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index f857171e..dfacd760 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -223,7 +223,7 @@ class BuildCommand(object):
if artifact.source.morphology.needs_staging_area:
self.install_fillers(staging_area)
self.install_chunk_artifacts(staging_area,
- deps)
+ deps, artifact)
morphlib.builder2.ldconfig(self.app.runcmd,
staging_area.tempdir)
@@ -359,7 +359,7 @@ class BuildCommand(object):
filename=filename)
staging_area.install_artifact(f)
- def install_chunk_artifacts(self, staging_area, artifacts):
+ def install_chunk_artifacts(self, staging_area, artifacts, parent_art):
'''Install chunk artifacts into staging area.
We only ever care about chunk artifacts as build dependencies,
@@ -373,7 +373,8 @@ class BuildCommand(object):
for artifact in artifacts:
if artifact.source.morphology['kind'] != 'chunk':
continue
- self.app.status(msg='Installing chunk %(chunk_name)s',
+ self.app.status(msg='[%(name)s] Installing chunk %(chunk_name)s',
+ name=parent_art.name,
chunk_name=artifact.name)
handle = self.lac.get(artifact)
staging_area.install_artifact(handle)
@@ -381,7 +382,8 @@ class BuildCommand(object):
def build_and_cache(self, staging_area, artifact):
'''Build an artifact and put it into the local artifact cache.'''
- self.app.status(msg='Starting actual build')
+ self.app.status(msg='Starting actual build: %(name)s',
+ name=artifact.name)
setup_mounts = self.app.settings['staging-chroot']
builder = morphlib.builder2.Builder(
self.app, staging_area, self.lac, self.rac, self.lrc,