Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /
Date: Sat, 03 Sep 2022 01:24:21
Message-Id: 1662168184.0d01497249a825e1d39862fd9d9ed6edde9a92bf.sam@gentoo
1 commit: 0d01497249a825e1d39862fd9d9ed6edde9a92bf
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 3 01:23:04 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 3 01:23:04 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=0d014972
7
8 keyrings-export.bash: only run weekly for timestamped files
9
10 Otherwise we'd end up having files like service-keys-20220905.gpg
11 created on 20220830.
12
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 keyrings-export.bash | 8 +++++++-
16 1 file changed, 7 insertions(+), 1 deletion(-)
17
18 diff --git a/keyrings-export.bash b/keyrings-export.bash
19 index 815c50b..39091f4 100755
20 --- a/keyrings-export.bash
21 +++ b/keyrings-export.bash
22 @@ -51,7 +51,13 @@ for key in service-keys committing-devs active-devs infra-devs retired-devs all-
23 ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
24 fi
25
26 - timestamp=$(date -u +%Y%m%d -d "monday")
27 + timestamp=$(date -u +%Y%m%d-%A -d "monday")
28 +
29 + if [[ ${timestamp} != *-Monday ]] ;
30 + break
31 + fi
32 +
33 + timestamp=${timestamp/-Monday/}
34
35 # Don't clobber existing timestamped keys for this period (weekly)
36 # if we're running several times a day.