Dpkg::OpenPGP::Backend::GnuPG: Touch trustedkeys.gpg on temporary gpg home
commit9cca3e8fedc64977a446854b2fded4b2b01b7c53
authorGuillem Jover <guillem@debian.org>
Mon, 16 Jan 2023 03:16:46 +0000 (16 04:16 +0100)
committerGuillem Jover <guillem@debian.org>
Mon, 16 Jan 2023 11:33:04 +0000 (16 12:33 +0100)
tree3aa475195a08addbe8ec23bc7b3b1df95fe2b8d2
parent92e6049c2e0649efd558d90bc5063608c0ca8577
Dpkg::OpenPGP::Backend::GnuPG: Touch trustedkeys.gpg on temporary gpg home

The gpgv command expects a trustedkeys.gpg keyring, and if there is none
it will try the trustedkeys.kbx one, but then will emit an error such as:

  gpgv: unknown type of key resource 'trustedkeys.kbx'
  gpgv: keyblock resource '<GPGHOME>/trustedkeys.kbx': General error

This error will only show if the gpgv invocation failed for other
reasons, but it is still an unnecessary distraction. Avoid that error,
by touching the trustedkeys.gpg keyring.
scripts/Dpkg/OpenPGP/Backend/GnuPG.pm