[pacman-dev] [PATCH v3 4/4] repo-add: add support for the zst format
Eli Schwartz
eschwartz at archlinux.org
Mon Oct 30 18:15:19 UTC 2017
Signed-off-by: Eli Schwartz <eschwartz at 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.")" \
--
2.15.0
More information about the pacman-dev
mailing list