From 8dad3e85623e1d03ffd49ebc0f8d266daf12d484 Mon Sep 17 00:00:00 2001 From: Evangelos Foutras Date: Thu, 29 Jul 2021 00:29:50 +0300 Subject: [PATCH] Revert "syncrepo: Properly clean up .~tmp~ dirs" This reverts commit 75f9ca3cc64df0653a4541be5e2334244fe24ca5. 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 --- roles/syncrepo/files/syncrepo | 3 --- 1 file changed, 3 deletions(-) diff --git a/roles/syncrepo/files/syncrepo b/roles/syncrepo/files/syncrepo index 52d0dbe9..92ca1b3c 100755 --- a/roles/syncrepo/files/syncrepo +++ b/roles/syncrepo/files/syncrepo @@ -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