Skip to content

Change way to block passphrase interaction

paz requested to merge paz/change-forcing-no-interaction into master

This changes the way we block gpg from asking interactively for a passphrase, ever. It's also a less hacky way to force this. This works with gpg-2.0.26+gpgme-1.5.1, gpg-2.1.18+gpgme-1.8.0, gpg-2.2.27+gpgme-1.14.0, and gpg-2.2.27+gpgme-1.15.1, which makes me optimistic that it's universally working.

The previous solution brought problems for some platforms and specific combinations of gnupg with gpgme (resulting in "GPGME::Error: no such file or directory"). See e.g. https://ci.debian.net/data/autopkgtest/testing/amd64/s/schleuder/10394911/log.gz

Merge request reports