From 7b47063227a4d75dfd36cf29447493c42cb72c15 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 25 Jul 2018 16:15:54 +0300 Subject: Add: -v to tar creating tarball for archiving --- ick2/actions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ick2/actions.py b/ick2/actions.py index 0f73e7b..c0bf92a 100644 --- a/ick2/actions.py +++ b/ick2/actions.py @@ -288,6 +288,7 @@ class ArchiveBaseAction(Action): # pragma: no cover env.report(1, 'No artifact_name parameter\n') return 1 env.report(None, 'Creating new artifact named {}\n'.format(blob_name)) + env.report(None, 'Artifact will be created from {}\n'.format(dirname)) globs = step.get('globs') if globs is None: @@ -301,7 +302,7 @@ class ArchiveBaseAction(Action): # pragma: no cover self._env.report(None, 'Creating tarball\n') fd, tarball = tempfile.mkstemp() os.close(fd) - tar = ['sudo', 'tar', '-zcf', tarball, '-C', dirname] + names + tar = ['sudo', 'tar', '-zvcf', tarball, '-C', dirname] + names exit_code = self._env.host_runcmd(tar) if exit_code != 0: self._env.report(exit_code, 'Tarball generation failed\n') -- cgit v1.2.1