diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-04-17 16:30:49 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-04-20 14:07:42 +0000 |
commit | b185cc13063ee8ec4e74bf963238b26154903c17 (patch) | |
tree | bba2ac3de5f806a305125a0d97c4548391a0ff50 /morphlib/plugins/ostree_artifacts_plugin.py | |
parent | 8ec6da9d7a04274b96544a9dd7c8b0d22c79736c (diff) | |
download | morph-b185cc13063ee8ec4e74bf963238b26154903c17.tar.gz |
OSTREE FIXUP
Change-Id: I834d21942427884420b153b49764d53a19e72988
Diffstat (limited to 'morphlib/plugins/ostree_artifacts_plugin.py')
-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)) |