From 6ae6c0fd879555fcc71c5f378ab004a2b77c95ce Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 12 Jun 2018 11:07:01 +0200 Subject: bin/build-packages: try to copy packages to .transfer on the master mirror (to relieve some upload bandwidth from the build master) --- bin/build-packages | 11 +++++++++++ lib/load-configuration | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/bin/build-packages b/bin/build-packages index 47e3cb7..3e3c966 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -579,6 +579,17 @@ while [ "${count}" -ne 0 ] && \ \) \ -printf '%f\n' ) + if ${upload_to_build_master}; then + # shellcheck disable=SC2046 + rsync -a $( + find "${tar_content_dir}/" -maxdepth 1 \ + \( \ + -name '*.pkg.tar.xz' -o \ + -name '*.pkg.tar.xz.sig' + \) \ + -printf '%f\n' + ) "rsync://mirror.archlinux32.org/transfer32/" || true + fi while ${upload_to_build_master}; do err=0 # shellcheck disable=SC2029 diff --git a/lib/load-configuration b/lib/load-configuration index 07ef270..92316d9 100755 --- a/lib/load-configuration +++ b/lib/load-configuration @@ -44,7 +44,7 @@ repo_key='0xdeadbeef' package_key='0x15eebadc0de' # to access the master mirror via rsync -master_mirror_rsync_command='rsync --password-file=/home/slave/rsync.password' +master_mirror_rsync_command='rsync --password-file=/home/slave/rsync.password --copy-dest=/.transfer' master_mirror_rsync_directory='rsync://buildmaster@mirror.archlinux32.org/packages32' # to access the master mirror via sftp -- cgit v1.2.3-70-g09d2