From 1433976802baf67c89038d699d0a50522bc138cc Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 13 Jun 2018 16:22:08 +0200 Subject: lib/common-functions: recompress_gz() new to recompress databases before sending, so they are transferred faster by rsync --- bin/return-assignment | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/return-assignment') 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."* \ -- cgit v1.2.3-54-g00ecf