summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
Diffstat (limited to 'bin/return-assignment')
-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} \