aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Zscheile <zseri.devel@ytrizja.de>2021-03-16 00:42:44 +0100
committerMike Frysinger <vapier@gentoo.org>2021-03-16 00:42:44 +0100
commit9c88ad056256ebc6c195b0d589952d801a822f0f (patch)
tree6f9fd26b86e9d9d07bf57d57e75eba6875038a45
parentrpmoffset: add zstd support (diff)
downloadrpm2targz-9c88ad056256ebc6c195b0d589952d801a822f0f.tar.gz
rpm2targz-9c88ad056256ebc6c195b0d589952d801a822f0f.tar.bz2
rpm2targz-9c88ad056256ebc6c195b0d589952d801a822f0f.zip
rpm2tar: add support for zstd files
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--Makefile2
-rwxr-xr-xrpm2targz1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8c73e0e..d986108 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ dist-live: clean
mkdir $(P)
cp `find . -maxdepth 1 -type f '!' -name .gitignore` $(P)
-LINKS = $(patsubst %,rpm2%,tar tarbz2 tbz2 tarlzma tgz tarxz txz)
+LINKS = $(patsubst %,rpm2%,tar tarbz2 tbz2 tarlzma tgz tarxz txz tarzst)
links:
set -e; for t in $(LINKS) ; do $(dosym) rpm2targz $$t ; done
diff --git a/rpm2targz b/rpm2targz
index d32300c..b8b4b69 100755
--- a/rpm2targz
+++ b/rpm2targz
@@ -80,6 +80,7 @@ case ${argv0#rpm} in
2tgz) compress="gzip" suffix=".tgz";;
2tarxz) compress="xz" suffix=".tar.xz";;
2txz) compress="xz" suffix=".txz";;
+ 2tarzst) compress="zstd" suffix=".tar.zst";;
2targz|*) compress="gzip" suffix=".tar.gz";;
esac
case ${argv0} in