diff options
author | Erich Eckner <git@eckner.net> | 2018-05-30 19:36:50 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-30 19:36:50 +0200 |
commit | a04e916f4a8e2d327ec186e8587fe6f3d60e4122 (patch) | |
tree | 128fee3da2c6ec605f5c7c4436be802ded3fd039 /bin | |
parent | 0381cb4d209cebdd8fcc69e2ed0186eb45da6ec1 (diff) | |
download | builder-a04e916f4a8e2d327ec186e8587fe6f3d60e4122.tar.xz |
bin/return-assignment: copy symlinks via rsync instead of sftp
Diffstat (limited to 'bin')
-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" \ |