commit:     7da88ccd30ca360220a82f186fd822c27b6866cc
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 04:21:41 2022 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 04:22:59 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=7da88ccd

keyrings-export: force creating compat symlinks

Infra is getting mails complaining that these symlinks already
exist. It's safe/easiest to just force them to be created.

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 keyrings-export.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/keyrings-export.bash b/keyrings-export.bash
index 7445644..dea52ac 100755
--- a/keyrings-export.bash
+++ b/keyrings-export.bash
@@ -44,7 +44,7 @@ export_keys "${OUTPUT_DIR}"/keys/all-devs.gpg \
 for key in service-keys committing-devs active-devs infra-devs retired-devs 
all-devs ; do
        if [[ ! -L "${OUTPUT_DIR}"/keys/${key}.gpg ]] ; then
                # Compatibility symlink
-               ln -s "${OUTPUT_DIR}"/keys/${key}.gpg "${OUTPUT_DIR}"/${key}.gpg
+               ln -sf "${OUTPUT_DIR}"/keys/${key}.gpg 
"${OUTPUT_DIR}"/${key}.gpg
        fi
 
        timestamp=$(date -u +%Y%m%d -d "monday")

Reply via email to