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 31C7C158094 for ; Mon, 11 Jul 2022 01:00:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 458C9E0D45; Mon, 11 Jul 2022 01:00:20 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2CCF1E0D45 for ; Mon, 11 Jul 2022 01:00:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2CC1D34102E for ; Mon, 11 Jul 2022 01:00:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8C847391 for ; Mon, 11 Jul 2022 01:00:17 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1657501207.a9d640acbf75867a786cc50971521af8d95e921a.sam@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: / X-VCS-Repository: proj/qa-scripts X-VCS-Files: keyrings-export.bash X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a9d640acbf75867a786cc50971521af8d95e921a X-VCS-Branch: master Date: Mon, 11 Jul 2022 01:00:17 +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: 1ad24907-01a2-44d4-b115-00cec02df530 X-Archives-Hash: 3ad8ce8047c6348aa90af2e9b72f2946 commit: a9d640acbf75867a786cc50971521af8d95e921a Author: Sam James gentoo org> AuthorDate: Mon Jul 11 01:00:07 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Jul 11 01:00:07 2022 +0000 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=a9d640ac keyrings-export.bash: put key snapshots in /keys/ to avoid clutter Signed-off-by: Sam James gentoo.org> keyrings-export.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/keyrings-export.bash b/keyrings-export.bash index eea3f20..6e4ade9 100755 --- a/keyrings-export.bash +++ b/keyrings-export.bash @@ -46,11 +46,13 @@ for key in service-keys committing-devs active-devs infra-devs retired-devs all- # Don't clobber existing timestamped keys for this period (weekly) # if we're running several times a day. - if [[ -f "${OUTPUT_DIR}"/${key}-${timestamp}.gpg ]] ; then + if [[ -f "${OUTPUT_DIR}"/keys/${key}-${timestamp}.gpg ]] ; then continue fi - cp "${OUTPUT_DIR}"/${key}.gpg "${OUTPUT_DIR}"/${key}-${timestamp}.gpg + mkdir -p "${OUTPUT_DIR}"/keys + + cp "${OUTPUT_DIR}"/${key}.gpg "${OUTPUT_DIR}"/keys/${key}-${timestamp}.gpg done clean_tmp