From b185cc13063ee8ec4e74bf963238b26154903c17 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Fri, 17 Apr 2015 16:30:49 +0000 Subject: OSTREE FIXUP Change-Id: I834d21942427884420b153b49764d53a19e72988 --- morphlib/plugins/ostree_artifacts_plugin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/morphlib/plugins/ostree_artifacts_plugin.py b/morphlib/plugins/ostree_artifacts_plugin.py index eedcd1e7..767cf0a2 100644 --- a/morphlib/plugins/ostree_artifacts_plugin.py +++ b/morphlib/plugins/ostree_artifacts_plugin.py @@ -91,7 +91,8 @@ class OSTreeArtifactsPlugin(cliapp.Plugin): # treat it like a RemoteArtifactCache. tarball_cache.method = 'tarball' - for artifact in cached_artifacts: + total = len(cached_artifacts) + for n, artifact in enumerate(cached_artifacts): if not ostree_cache.has(artifact): try: cache_key, kind, name = artifact.basename().split('.', 2) @@ -102,8 +103,8 @@ class OSTreeArtifactsPlugin(cliapp.Plugin): except ValueError: # We must have metadata, which doesn't need converting continue - self.app.status(msg='Converting %(name)s', - name=artifact.basename()) + self.app.status(msg='[%(n)i/%(total)i] Converting %(name)s', + n=n, total=total, name=artifact.basename()) ostree_cache.copy_from_remote(artifact, tarball_cache) if delete: os.remove(tarball_cache.artifact_filename(artifact)) -- cgit v1.2.1