From: Carl Hetherington Date: Fri, 30 Dec 2022 15:49:40 +0000 (+0100) Subject: Use .tar.zst not .zst for zstd tarballs. X-Git-Url: https://git.carlh.net/gitweb/?p=cdist.git;a=commitdiff_plain;h=f0884c529c1eeee444a31040ca75b711702efb5c Use .tar.zst not .zst for zstd tarballs. --- diff --git a/cdist b/cdist index f36bdfd..a6c6ea8 100755 --- a/cdist +++ b/cdist @@ -910,8 +910,8 @@ class SourceTarget(Target): bz2 = os.path.abspath('%s-%s.tar.bz2' % (name, tree.version)) copyfile(bz2, os.path.join(output_dir, os.path.basename(devel_to_git(tree.commit, bz2)))) command('tar xjf %s' % bz2) - command('tar --zstd -cf %s-%s.zst %s-%s' % (name, tree.version, name, tree.version)) - zstd = os.path.abspath('%s-%s.zst' % (name, tree.version)) + command('tar --zstd -cf %s-%s.tar.zst %s-%s' % (name, tree.version, name, tree.version)) + zstd = os.path.abspath('%s-%s.tar.zst' % (name, tree.version)) copyfile(zstd, os.path.join(output_dir, os.path.basename(devel_to_git(tree.commit, zstd)))) # @param s Target string: