diff options
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-x | bin/return-assignment | 11 |
1 files changed, 6 insertions, 5 deletions
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" \ |