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-09-10 09:42:28 +0200
committerErich Eckner <git@eckner.net>2018-09-10 09:42:28 +0200
commit0eae9c3f895ddf187e3807aa76ae3400379a2ad1 (patch)
treef08c3b7ad5038c9d810c26cfba29aa90c93f643a /bin/copy-to-build-support
parent6d10a24d55bfdadcce69f3f0beb4c1a018af8060 (diff)
lib/common-functions: failsafe_rsync() new
Diffstat (limited to 'bin/copy-to-build-support')
-rwxr-xr-xbin/copy-to-build-support6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/copy-to-build-support b/bin/copy-to-build-support
index 70e26e7..7456235 100755
--- a/bin/copy-to-build-support
+++ b/bin/copy-to-build-support
@@ -167,7 +167,7 @@ sort -u "${tmp_dir}/repo-archs" | \
while read -r repo_arch; do
mkdir "${tmp_dir}/${repo_arch}"
- ${master_mirror_rsync_command} \
+ failsafe_rsync \
"${master_mirror_rsync_directory}/${repo_arch}/build-support/build-support.db."* \
"${master_mirror_rsync_directory}/${repo_arch}/build-support/build-support.files."* \
"${tmp_dir}/${repo_arch}/"
@@ -179,7 +179,7 @@ if [ -s "${tmp_dir}/to-copy" ]; then
while read -r repo_arch; do
mkdir "${tmp_dir}/transit/${repo_arch}/"
# shellcheck disable=SC2046
- ${master_mirror_rsync_command} \
+ failsafe_rsync \
$(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" \
@@ -198,7 +198,7 @@ while read -r repo_arch; do
"${tmp_dir}" \
"${tmp_dir}/${repo_arch}/build-support."*".tar.gz" \
"${tmp_dir}/${repo_arch}/build-support."*".tar.gz.old"
- ${master_mirror_rsync_command} \
+ failsafe_rsync \
"${tmp_dir}/${repo_arch}/build-support.db."* \
"${tmp_dir}/${repo_arch}/build-support.files."* \
"${master_mirror_rsync_directory}/${repo_arch}/build-support/"