summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-30 18:37:08 +0200
committerErich Eckner <git@eckner.net>2018-05-30 18:37:08 +0200
commit0381cb4d209cebdd8fcc69e2ed0186eb45da6ec1 (patch)
treea5a1f65e46a67d953317c34df97ff430bceef0f7 /bin
parent85d5972e1ea0699c333e7491203743f9dc727c6a (diff)
downloadbuilder-0381cb4d209cebdd8fcc69e2ed0186eb45da6ec1.tar.xz
bin/return-assignment: create symlinks per sftp
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment9
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} \