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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D7E19158020 for ; Tue, 1 Nov 2022 22:45:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 16961E0AB2; Tue, 1 Nov 2022 22:45:41 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EB44AE0AB2 for ; Tue, 1 Nov 2022 22:45:40 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD7C3340D87 for ; Tue, 1 Nov 2022 22:45:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3B0605E7 for ; Tue, 1 Nov 2022 22:45:38 +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: <1667342667.e5323d2232b5b24d7481c5175777f15e9b2e68cd.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: e5323d2232b5b24d7481c5175777f15e9b2e68cd X-VCS-Branch: master Date: Tue, 1 Nov 2022 22:45:38 +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: 13c043ae-b40f-45a6-9bd4-dfe409eae1e2 X-Archives-Hash: 802aea6f59c160d65d1380964fddb793 commit: e5323d2232b5b24d7481c5175777f15e9b2e68cd Author: Sam James gentoo org> AuthorDate: Tue Nov 1 22:44:27 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Nov 1 22:44:27 2022 +0000 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=e5323d22 keyrings-export.bash: use "last monday" / fix timestamped files generation Don't generate the timestamped files on Mondays to avoid "last" / "next" Monday confusion We want to avoid generating stuff like all-devs-20221107.gpg. Signed-off-by: Sam James gentoo.org> keyrings-export.bash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/keyrings-export.bash b/keyrings-export.bash index 35c9959..b3234e2 100755 --- a/keyrings-export.bash +++ b/keyrings-export.bash @@ -51,7 +51,12 @@ for key in service-keys committing-devs active-devs infra-devs retired-devs all- ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg fi - timestamp=$(date -u +%Y%m%d-%A -d "monday") + if [[ $(date -u +%A) == Monday ]] ; then + # We don't want to run on Mondays to avoid last/next week confusion + break + fi + + timestamp=$(date -u +%Y%m%d-%A -d "last monday") if [[ ${timestamp} != *-Monday ]] ; then break