commit: 8c2974c140ff258a21a1f4eb78194fc72ae91ff9 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Jul 18 13:55:42 2018 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Jul 18 13:59:22 2018 +0000 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8c2974c1
create-dev-keyrings: Do not dispose GNUPGHOME Instead of disposing GNUPGHOME and fetching fresh, just keep updating the current keyring. Since we export only part of it, stale keys should not cause any trouble. create-dev-keyrings.bash | 3 --- 1 file changed, 3 deletions(-) diff --git a/create-dev-keyrings.bash b/create-dev-keyrings.bash index 4e66655..7afed08 100755 --- a/create-dev-keyrings.bash +++ b/create-dev-keyrings.bash @@ -49,9 +49,6 @@ COMMITTING_DEVS=( $(grab_ldap_fingerprints "${COMMIT_RULE}") ) NONCOMMITTING_DEVS=( $(grab_ldap_fingerprints "${NONCOMMIT_RULE}") ) #RETIRED_DEVS=( $(grab_ldap_fingerprints "${RETIRED_RULE}") ) -export GNUPGHOME=$(mktemp -d) -trap 'rm -rf "${GNUPGHOME}"' EXIT - grab_keys "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}" gpg --export "${COMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/committing-devs.gpg gpg --export "${COMMITTING_DEVS[@]}" "${NONCOMMITTING_DEVS[@]}" > "${OUTPUT_DIR}"/active-devs.gpg