diff options
author | Erich Eckner <git@eckner.net> | 2018-05-30 18:37:08 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-30 18:37:08 +0200 |
commit | 0381cb4d209cebdd8fcc69e2ed0186eb45da6ec1 (patch) | |
tree | a5a1f65e46a67d953317c34df97ff430bceef0f7 /bin | |
parent | 85d5972e1ea0699c333e7491203743f9dc727c6a (diff) | |
download | builder-0381cb4d209cebdd8fcc69e2ed0186eb45da6ec1.tar.xz |
bin/return-assignment: create symlinks per sftp
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/return-assignment | 9 |
1 files changed, 4 insertions, 5 deletions
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} \ |