1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-09-22 15:10:39 +02:00

Revert "syncrepo: Properly clean up .~tmp~ dirs"

This reverts commit 75f9ca3cc6.

This should be fixed in rsync versions newer than 3.2.3. In Arch the fix
has been shipped in the rsync 3.2.3-4 package, which our own mirrors now
have been updated to.

[1] https://github.com/WayneD/rsync/issues/192
This commit is contained in:
Evangelos Foutras 2021-07-29 00:29:50 +03:00
parent d9e4acf8a6
commit 8dad3e8562
No known key found for this signature in database
GPG Key ID: 51E8B148A9999C34

View File

@ -68,9 +68,6 @@ lastupdate_url='https://rsync.archlinux.org/lastupdate'
[ ! -d "${target}" ] && mkdir -p "${target}"
[ ! -d "${tmp}" ] && mkdir -p "${tmp}"
# Cleanup any temporary files from old run that might remain.
find "${target}" -name '.~tmp~' -exec rm -r {} +
exec 9>"${lock}"
flock -n 9 || exit