Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-13 16:22:08 +0200
committerErich Eckner <git@eckner.net>2018-06-13 16:22:08 +0200
commit1433976802baf67c89038d699d0a50522bc138cc (patch)
tree10c3b0adb34c644fdbeaf20a2a09b925c495987c /bin/return-assignment
parentd7d699efe7941f626617e952fb8ecf057f493ec8 (diff)
lib/common-functions: recompress_gz() new to recompress databases before sending, so they are transferred faster by rsync
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 2e0d7db..1eba7ac 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -576,6 +576,10 @@ find . \( -name '*.pkg.tar.xz' -o -name '*.pkg.tar.xz.sig' \) -printf '%f\n' | \
cut -d' ' -f4,5 "${tmp_dir}/repository-ids" | \
sort -u | \
while read -r arch repo; do
+ recompress_gz \
+ "${tmp_dir}" \
+ "${arch}/${repo}/${repo}."*".tar.gz" \
+ "${arch}/${repo}/${repo}."*".tar.gz.old"
# shellcheck disable=SC2046
${master_mirror_rsync_command} \
"${arch}/${repo}/${repo}.db."* \