From a75e5121478e2a645c65d276cc20f3eb659222f4 Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Mon, 16 Nov 2015 09:27:57 +0000 Subject: Improve status messages Change-Id: I3ecd315df73b74177dd42c424be0250def65a2b4 --- morphlib/buildcommand.py | 5 ++--- morphlib/definitions_repo.py | 6 ++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index a0922165..222d229a 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -58,7 +58,7 @@ class BuildCommand(object): msg='Building %(repo_name)s %(ref)s %(filename)s', repo_name=repo_name, ref=ref, filename=filename) - self.app.status(msg='Deciding on task order') + self.app.status(msg='Traversing morphologies for %s' % filename) srcpool = self.create_source_pool( repo_name, ref, [filename], original_ref) self.validate_sources(srcpool) @@ -188,10 +188,9 @@ class BuildCommand(object): def resolve_artifacts(self, srcpool): '''Resolve the artifacts that will be built for a set of sources''' - self.app.status(msg='Creating artifact resolver', chatty=True) ar = morphlib.artifactresolver.ArtifactResolver() - self.app.status(msg='Resolving artifacts', chatty=True) + self.app.status(msg='Building artifact dependency graph') root_artifacts = ar.resolve_root_artifacts(srcpool) if len(root_artifacts) > 1: diff --git a/morphlib/definitions_repo.py b/morphlib/definitions_repo.py index 6d14fcbb..617b9546 100644 --- a/morphlib/definitions_repo.py +++ b/morphlib/definitions_repo.py @@ -202,7 +202,8 @@ class DefinitionsRepo(gitdir.GitDirectory): git_user_email=git_user_email, status_cb=status_cb) with temporary_branch as (repo_url, commit, original_ref): if status_cb: - status_cb(msg='Deciding on task order') + status_cb(msg='Traversing morphologies for %s' % + system_filename) yield morphlib.sourceresolver.create_source_pool( lrc, rrc, repo_url, commit, [system_filename], @@ -213,7 +214,8 @@ class DefinitionsRepo(gitdir.GitDirectory): commit = self.resolve_ref_to_commit(ref) if status_cb: - status_cb(msg='Deciding on task order') + status_cb(msg='Traversing morphologies for %s' % + system_filename) try: yield morphlib.sourceresolver.create_source_pool( -- cgit v1.2.1