From a04e916f4a8e2d327ec186e8587fe6f3d60e4122 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 30 May 2018 19:36:50 +0200 Subject: bin/return-assignment: copy symlinks via rsync instead of sftp --- bin/return-assignment | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bin/return-assignment') diff --git a/bin/return-assignment b/bin/return-assignment index d2c0b7f..24a12bf 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -519,13 +519,14 @@ ${master_mirror_rsync_command} \ "${master_mirror_rsync_directory}/pool/" # create symlinks -find . \( -name '*.pkg.tar.xz' -o -name '*.pkg.tar.xz.sig' \) \ - -delete \ - -printf 'ln -s "../../pool/%f" "i686/'"${destination}"'/%f"\n' | \ - ${master_mirror_sftp_command} +find . \( -name '*.pkg.tar.xz' -o -name '*.pkg.tar.xz.sig' \) -printf '%f\n' | \ + while read -r file; do + rm "${file}" + ln -s "../../pool/${file}" "${file}" + done # upload the database and the symlinks into /$arch/$repo -${master_mirror_rsync_command} \ +${master_mirror_rsync_command} -l \ "${destination}.db."* \ "${destination}.files."* \ ./*".pkg.tar.xz" \ -- cgit v1.2.3-54-g00ecf