Kill gpg-agent when appropriate

This commit is contained in:
Ruben Rodriguez 2019-11-01 15:09:05 -04:00
parent e5e89e5c2b
commit a649fddd6e

View file

@ -141,6 +141,7 @@ if grep -q "BEGIN PGP SIGNATURE" *.dsc; then
touch ${LOCAL_APT}/keyring.gpg
gpg2 --no-use-agent --keyring ${LOCAL_APT}/keyring.gpg --import ${LOCAL_APT}/etc/trusted.gpg
gpg2 --no-use-agent --verify --keyring ${LOCAL_APT}/etc/trusted.gpg *.dsc
[ -n SCHROOT_COMMAND ] && gpgconf --kill gpg-agent
else
echo WARNING! The dsc file is not gpg signed!
[ -z "$EXTERNAL" ] && exit 1