diff options
-rw-r--r-- | morphlib/plugins/ostree_artifacts_plugin.py | 7 |
1 files 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)) |