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 E891B158089 for ; Mon, 9 Oct 2023 00:08:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D2712BC017; Mon, 9 Oct 2023 00:08:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 140582BC017 for ; Mon, 9 Oct 2023 00:08:08 +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 2E75F335C56 for ; Mon, 9 Oct 2023 00:08:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ABF74AF9 for ; Mon, 9 Oct 2023 00:08:05 +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: <1696810083.c5b7bfb6ecb63958ae99ed64144f0a508010b645.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: c5b7bfb6ecb63958ae99ed64144f0a508010b645 X-VCS-Branch: master Date: Mon, 9 Oct 2023 00:08:05 +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: 525771f9-cbc1-45b3-b0d1-8278f95bbb6b X-Archives-Hash: 6cfd0585e8c2a14cccf32e6c8fb178f5 commit: c5b7bfb6ecb63958ae99ed64144f0a508010b645 Author: Robin H. Johnson gentoo org> AuthorDate: Mon Oct 9 00:08:03 2023 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Oct 9 00:08:03 2023 +0000 URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=c5b7bfb6 copy_buildsync: refactor check for link create Signed-off-by: Robin H. Johnson gentoo.org> scripts/copy_buildsync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/copy_buildsync.sh b/scripts/copy_buildsync.sh index 95e3215a..df971e0a 100755 --- a/scripts/copy_buildsync.sh +++ b/scripts/copy_buildsync.sh @@ -232,15 +232,15 @@ process_arch() { cd "current-$v" for variant_file in "../${variant_path}"* ; do doit=0 + vfb=$(basename "$variant_file") # If it doesn't exist, add it. - if [[ ! -e "$variant_file" ]]; then + if [[ ! -e "$vfb" ]]; then doit=1 else # If it does exist, check carefully to see if anything is different # Does it point to somewhere else? # Is the target newer? # If those are true, also bump the symlink. - vfb=$(basename "$variant_file") vft=$(readlink -f "$vfb") [[ "$vft" != "$(readlink -f "$variant_file")" ]] && doit=1 [[ "$vfb" -nt "$vft" ]] && doit=1