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>2018-06-13 16:22:08 +0200
committerErich Eckner <git@eckner.net>2018-06-13 16:22:08 +0200
commit1433976802baf67c89038d699d0a50522bc138cc (patch)
tree10c3b0adb34c644fdbeaf20a2a09b925c495987c /bin/copy-to-build-support
parentd7d699efe7941f626617e952fb8ecf057f493ec8 (diff)
lib/common-functions: recompress_gz() new to recompress databases before sending, so they are transferred faster by rsync
Diffstat (limited to 'bin/copy-to-build-support')
-rwxr-xr-xbin/copy-to-build-support4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/copy-to-build-support b/bin/copy-to-build-support
index a60f058..8625d21 100755
--- a/bin/copy-to-build-support
+++ b/bin/copy-to-build-support
@@ -176,6 +176,10 @@ if [ -s "${tmp_dir}/sftp-command" ]; then
fi
while read -r repo_arch; do
+ recompress_gz \
+ "${tmp_dir}" \
+ "${tmp_dir}/${repo_arch}/build-support."*".tar.gz" \
+ "${tmp_dir}/${repo_arch}/build-support."*".tar.gz.old"
${master_mirror_rsync_command} \
"${tmp_dir}/${repo_arch}/build-support.db."* \
"${tmp_dir}/${repo_arch}/build-support.files."* \