From 0381cb4d209cebdd8fcc69e2ed0186eb45da6ec1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 30 May 2018 18:37:08 +0200 Subject: bin/return-assignment: create symlinks per sftp --- bin/return-assignment | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/return-assignment b/bin/return-assignment index ac2e4c0..d2c0b7f 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -519,11 +519,10 @@ ${master_mirror_rsync_command} \ "${master_mirror_rsync_directory}/pool/" # create symlinks -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 +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} # upload the database and the symlinks into /$arch/$repo ${master_mirror_rsync_command} \ -- cgit v1.2.3-70-g09d2