Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/copy-to-build-support
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-03 13:26:28 +0100
committerErich Eckner <git@eckner.net>2020-01-03 13:26:28 +0100
commit9009a5fec52c5820fc90a68317bcc29cdbb42da1 (patch)
tree7b6282369dfa8cfc3cbd224b9dabf79ca4a5d87a /bin/copy-to-build-support
parent089cbcdf1c5cedcb4157cdd164ee7510139c1904 (diff)
learn to handle zst, too
Diffstat (limited to 'bin/copy-to-build-support')
-rwxr-xr-xbin/copy-to-build-support5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/copy-to-build-support b/bin/copy-to-build-support
index abf11cb..0b3eaf7 100755
--- a/bin/copy-to-build-support
+++ b/bin/copy-to-build-support
@@ -83,7 +83,8 @@ export TMPDIR="${tmp_dir}"
sed -n '
s/ \S\+/\0 \0/
T
- s/\.pkg\.tar\.xz$//
+ s/\.pkg\.tar\.zst$//
+ T
s/\(-[0-9]\+\)\(-[^- ]\+\)$/\1.0\2/
s/-\([^-: ]\+\)\(\(-[^- ]\+\)\{2\}\)$/-0:\1\2/
s/-\([^-: ]\+\):\([^-: ]\+\)-\([^-. ]\+\).\([^-. ]\+\)-\([^- ]\+\)$/ \1 \2 \3 \4 \5/
@@ -189,7 +190,7 @@ if [ -s "${tmp_dir}/to-copy" ]; then
$(sed -n 's,^'"$(str_to_regex "${repo_arch}")"' ,,;T;p' "${tmp_dir}/to-copy") \
"${tmp_dir}/transit/${repo_arch}/"
repo-add "${tmp_dir}/${repo_arch}/build-support.db.tar.gz" \
- "${tmp_dir}/transit/${repo_arch}/"*".pkg.tar.xz"
+ "${tmp_dir}/transit/${repo_arch}/"*".pkg.tar.zst"
done < \
"${tmp_dir}/repo-archs"
fi