copy_buildsync: ensure cleanup of old symlinks fires

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson 2023-10-08 16:35:51 -07:00
parent 04bc16e086
commit 9a3f920c95
No known key found for this signature in database
GPG key ID: 19395F23C58826C4

View file

@ -217,7 +217,11 @@ process_arch() {
fi fi
# Remove old links in the directory. # Remove old links in the directory.
find "current-$v" -type l ! -name "$f" ! -name "${variant_date}*" find "current-$v" \
-type l \
! -name "$f" \
! -name "*${variant_date}*" \
-delete
# install new links # install new links
# do NOT unconditionally use -f here, we do not want to override the # do NOT unconditionally use -f here, we do not want to override the