aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2024-05-19 10:28:40 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2024-05-19 10:28:40 -0700
commit3a1755377cb4beaa68914844e61b9a2566a6ee12 (patch)
tree38d607e994a335d055a6274b2b435de748fdbaae
parentkeyrings.inc.bash: support export options (diff)
downloadqa-scripts-3a1755377cb4beaa68914844e61b9a2566a6ee12.tar.gz
qa-scripts-3a1755377cb4beaa68914844e61b9a2566a6ee12.tar.bz2
qa-scripts-3a1755377cb4beaa68914844e61b9a2566a6ee12.zip
keyrings-export.bash: test export-clean variants in new files
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xkeyrings-export.bash42
1 files changed, 42 insertions, 0 deletions
diff --git a/keyrings-export.bash b/keyrings-export.bash
index 56e4e51..42f0b08 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -56,6 +56,48 @@ export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \
"${RETIRED_DEVS[@]}" \
&& KEYRINGS+=( all-devs )
+# TEMPORARY:
+# Verify export-clean vs stock export options.
+export GPG_EXPORT_OPTS=( --export-options export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/service-keys.export-clean.gpg \
+ "${SYSTEM_KEYS[@]}" \
+&& KEYRINGS+=( service-keys.export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/infra-service-keys.export-clean.gpg \
+ "${INFRA_SYSTEM_KEYS[@]}" \
+&& KEYRINGS+=( infra-service-keys.export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/committing-devs.export-clean.gpg \
+ "${COMMITTING_DEVS[@]}" \
+&& KEYRINGS+=( committing-devs.export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/active-devs.export-clean.gpg \
+ "${COMMITTING_DEVS[@]}" \
+ "${NONCOMMITTING_DEVS[@]}" \
+&& KEYRINGS+=( active-devs.export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/infra-devs.export-clean.gpg \
+ "${INFRA_DEVS[@]}" \
+&& KEYRINGS+=( infra-devs.export-clean )
+
+export_keys "${OUTPUT_DIR}"/keys/retired-devs.export-clean.gpg \
+ "${RETIRED_DEVS[@]}" \
+&& KEYRINGS+=( retired-devs.export-clean )
+
+# Everybody together now
+export_keys "${OUTPUT_DIR}"/keys/all-devs.export-clean.gpg \
+ "${SYSTEM_KEYS[@]}" \
+ "${INFRA_SYSTEM_KEYS[@]}" \
+ "${COMMITTING_DEVS[@]}" \
+ "${NONCOMMITTING_DEVS[@]}" \
+ "${INFRA_DEVS[@]}" \
+ "${RETIRED_DEVS[@]}" \
+&& KEYRINGS+=( all-devs.export-clean )
+
+unset GPG_EXPORT_OPTS
+# END TEMPORARY
+
for key in "${KEYRINGS[@]}" ; do
if [[ ! -L "${OUTPUT_DIR}"/${key}.gpg ]] ; then
# Compatibility symlink