refresh keys again, this time with gpg1 - gpg2 creates incompatible keyrings
This commit is contained in:
parent
a52c5d2ebf
commit
fa9a3c24a1
@ -11,7 +11,7 @@ tmpdir=$(mktemp --tmpdir -d create-gpgring-XXXXXXX)
|
|||||||
trap 'rm -rf "${tmpdir}"' EXIT
|
trap 'rm -rf "${tmpdir}"' EXIT
|
||||||
|
|
||||||
mygpg() {
|
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
|
unset INFILES
|
||||||
@ -58,8 +58,8 @@ export HOME="${tmpdir}"
|
|||||||
|
|
||||||
KEYRING="${tmpdir}/keyring"
|
KEYRING="${tmpdir}/keyring"
|
||||||
|
|
||||||
mygpg --keyring "${KEYRING}" --import -- "${INFILES[@]}"
|
mygpg --no-default-keyring --primary-keyring "${KEYRING}" --import -- "${INFILES[@]}"
|
||||||
mygpg --keyring "${KEYRING}" --list-keys
|
mygpg --no-default-keyring --primary-keyring "${KEYRING}" --list-keys
|
||||||
|
|
||||||
mv "${KEYRING}" "${OUTFILE}"
|
mv "${KEYRING}" "${OUTFILE}"
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user