summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2013-02-21 13:13:27 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2013-02-21 13:13:27 +0000
commit4848271d38b2ab139bbd44bb1a18d0fe80d3a4f9 (patch)
tree4bfa5d268665e523eccfb39d2300a29a20e91c02 /morphlib/buildcommand.py
parentb1dc3a2e5a161ab92b481d69e6e5cbb34e5c9395 (diff)
parented79cb01302fbfda0484c7371e5a364d0d872e74 (diff)
downloadmorph-4848271d38b2ab139bbd44bb1a18d0fe80d3a4f9.tar.gz
Merge branch 'liw/build-progress2'
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r--morphlib/buildcommand.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index b9ded140..e27581d2 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -51,7 +51,7 @@ class BuildCommand(object):
artifact = self.get_artifact_object(repo_name, ref, filename)
self.build_in_order(artifact)
- self.app.status(msg='Build ends successfully', chatty=True)
+ self.app.status(msg='Build ends successfully')
def new_build_env(self):
'''Create a new BuildEnvironment instance.'''
@@ -186,8 +186,13 @@ class BuildCommand(object):
self.app.status(msg='Building according to build ordering',
chatty=True)
- for a in artifact.walk():
+ artifacts = artifact.walk()
+ old_prefix = self.app.status_prefix
+ for i, a in enumerate(artifacts):
+ self.app.status_prefix = (
+ old_prefix + '[Build %d/%d] ' % ((i+1), len(artifacts)))
self.build_artifact(a)
+ self.app.status_prefix = old_prefix
def build_artifact(self, artifact):
'''Build one artifact.