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

Message ID 20170829050117.10097-3-eschwartz@archlinux.org
State Superseded, archived
Headers show
Series [pacman-dev,1/3] makepkg: refactor archive compression for reusability | expand

Commit Message

Eli Schwartz Aug. 29, 2017, 5:01 a.m. UTC
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
---

Unlike makepkg, this is implemented as a bsdtar option which means we
*need* libarchive support just to create a database, never mind whether
pacman can read it.

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

--
2.14.1

Patch

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.")" \