refresh keys again, this time with gpg1 - gpg2 creates incompatible keyrings

This commit is contained in:
Stefan Bühler 2016-12-09 13:44:51 +01:00
parent a52c5d2ebf
commit fa9a3c24a1
4 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ tmpdir=$(mktemp --tmpdir -d create-gpgring-XXXXXXX)
trap 'rm -rf "${tmpdir}"' EXIT
mygpg() {
gpg --homedir "${tmpdir}/.gnupg" --batch --no-tty --no-options --no-default-keyring --no-auto-check-trustdb --trustdb-name "${tmpdir}/trustdb.gpg" "$@"
gpg1 --homedir "${tmpdir}/.gnupg" --batch --no-tty --no-options --no-auto-check-trustdb --trustdb-name "${tmpdir}/trustdb.gpg" "$@"
}
unset INFILES
@ -58,8 +58,8 @@ export HOME="${tmpdir}"
KEYRING="${tmpdir}/keyring"
mygpg --keyring "${KEYRING}" --import -- "${INFILES[@]}"
mygpg --keyring "${KEYRING}" --list-keys
mygpg --no-default-keyring --primary-keyring "${KEYRING}" --import -- "${INFILES[@]}"
mygpg --no-default-keyring --primary-keyring "${KEYRING}" --list-keys
mv "${KEYRING}" "${OUTFILE}"

Binary file not shown.

Binary file not shown.

Binary file not shown.