[pacman-dev,v3,4/4] repo-add: add support for the zst format

Message ID 20171030181519.24501-4-eschwartz@archlinux.org
State Accepted, archived
Headers show
Series [pacman-dev,v3,1/4] libmakepkg: fix .gitignore to simply ignore all generated .sh files | expand

Commit Message

Eli Schwartz Oct. 30, 2017, 6:15 p.m. UTC
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>

no changes

I decided not to refactor repo-add, at least not right now. The current
code makes too many assumptions about its differing implementation.

I'm not sure why we fail on unknown extensions, really, considering
pacman doesn't care if we fall back to plain old tar, and we take
advantage of this in makepkg.

 scripts/repo-add.sh.in | 1 +
 1 file changed, 1 insertion(+)


diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 68edbf4b..ccc0c89b 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -300,6 +300,7 @@  verify_repo_extension() {
 		*.db.tar.gz)  TAR_OPT="z" ;;
 		*.db.tar.bz2) TAR_OPT="j" ;;
 		*.db.tar.xz)  TAR_OPT="J" ;;
+		*.db.tar.zst) TAR_OPT="--zstd" ;;
 		*.db.tar.Z)   TAR_OPT="Z" ;;
 		*.db.tar)     TAR_OPT="" ;;
 		*) error "$(gettext "'%s' does not have a valid database archive extension.")" \