summaryrefslogtreecommitdiff
path: root/scripts/repo-add.sh.in
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2017-10-30 14:15:19 -0400
committerAllan McRae <allan@archlinux.org>2018-09-19 18:15:50 +1000
commit7afe51171fe063bf3031cc68fc8c7ac914a01de2 (patch)
treea1c807405ae48dc4d4dc02c579df12a2dfc5694d /scripts/repo-add.sh.in
parentbae74c8e9e69b4f4e1a235eef21b9b27fb14aff0 (diff)
downloadpacman-7afe51171fe063bf3031cc68fc8c7ac914a01de2.tar.xz
repo-add: add support for the zst format
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/repo-add.sh.in')
-rw-r--r--scripts/repo-add.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 69f6e22c..506d524b 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -301,6 +301,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.")" \