commit: 9a3f920c9554173481d79acccedfed74357776ea
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 8 23:35:51 2023 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Oct 8 23:35:51 2023 +0000
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=9a3f920c
copy_buildsync: ensure cleanup of old symlinks fires
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
scripts/copy_buildsync.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/scripts/copy_buildsync.sh b/scripts/copy_buildsync.sh
index 71e890d9..7016fa26 100755
--- a/scripts/copy_buildsync.sh
+++ b/scripts/copy_buildsync.sh
@@ -217,7 +217,11 @@ process_arch() {
fi
# 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
# do NOT unconditionally use -f here, we do not want to
override the