From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 044AA158089 for ; Sun, 8 Oct 2023 23:35:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 047EC2BC017; Sun, 8 Oct 2023 23:35:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D9C182BC017 for ; Sun, 8 Oct 2023 23:35:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1C73A335C67 for ; Sun, 8 Oct 2023 23:35:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD7628C9 for ; Sun, 8 Oct 2023 23:35:54 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1696808151.9a3f920c9554173481d79acccedfed74357776ea.robbat2@gentoo> Subject: [gentoo-commits] proj/releng:master commit in: scripts/ X-VCS-Repository: proj/releng X-VCS-Files: scripts/copy_buildsync.sh X-VCS-Directories: scripts/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 9a3f920c9554173481d79acccedfed74357776ea X-VCS-Branch: master Date: Sun, 8 Oct 2023 23:35:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ce3c3aac-c80a-4c7e-8683-50421fdeadcf X-Archives-Hash: ce33d6f9dc3c2b98350325fe83f4a2f5 commit: 9a3f920c9554173481d79acccedfed74357776ea Author: Robin H. Johnson gentoo org> AuthorDate: Sun Oct 8 23:35:51 2023 +0000 Commit: Robin H. Johnson gentoo 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 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