Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/delete-packages
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/delete-packages
parentd7d699efe7941f626617e952fb8ecf057f493ec8 (diff)
lib/common-functions: recompress_gz() new to recompress databases before sending, so they are transferred faster by rsync
Diffstat (limited to 'bin/delete-packages')
-rwxr-xr-xbin/delete-packages8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/delete-packages b/bin/delete-packages
index 4767d00..8c515c2 100755
--- a/bin/delete-packages
+++ b/bin/delete-packages
@@ -288,9 +288,13 @@ while read -r arch repo; do
cut -d' ' -f3
)
if ! ${no_action}; then
+ recompress_gz \
+ "${tmp_dir}" \
+ "${tmp_dir}/repos/${arch}/${repo}."*".tar.gz" \
+ "${tmp_dir}/repos/${arch}/${repo}."*".tar.gz.old"
${master_mirror_rsync_command} \
- "${tmp_dir}/repos/${arch}/${repo}.db.tar.gz" \
- "${tmp_dir}/repos/${arch}/${repo}.files.tar.gz" \
+ "${tmp_dir}/repos/${arch}/${repo}.db."* \
+ "${tmp_dir}/repos/${arch}/${repo}.files."* \
"${master_mirror_rsync_directory}/${arch}/${repo}/"
fi
done < \