Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-30 19:36:50 +0200
committerErich Eckner <git@eckner.net>2018-05-30 19:36:50 +0200
commita04e916f4a8e2d327ec186e8587fe6f3d60e4122 (patch)
tree128fee3da2c6ec605f5c7c4436be802ded3fd039 /bin
parent0381cb4d209cebdd8fcc69e2ed0186eb45da6ec1 (diff)
bin/return-assignment: copy symlinks via rsync instead of sftp
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment11
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" \