commit:     9c88ad056256ebc6c195b0d589952d801a822f0f
Author:     Erik Zscheile <zseri.devel <AT> ytrizja <DOT> de>
AuthorDate: Mon Mar 15 23:42:44 2021 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Mon Mar 15 23:42:44 2021 +0000
URL:        https://gitweb.gentoo.org/proj/rpm2targz.git/commit/?id=9c88ad05

rpm2tar: add support for zstd files

Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

 Makefile  | 2 +-
 rpm2targz | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

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

Reply via email to