mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Fix (quick) key generation with --always-trust.
* g10/keygen.c (do_generate_keypair): Only update the ownertrust if we do have a trust database. * g10/trustdb.c (have_trustdb): New function. * g10/trustdb.h (have_trustdb): New prototype. * tests/openpgp/quick-key-manipulation.scm: Remove workaround. GnuPG-bug-id: 2695 Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
d6f0f36876
commit
4735ab96aa
4 changed files with 14 additions and 6 deletions
|
@ -21,10 +21,6 @@
|
|||
(load (with-path "time.scm"))
|
||||
(setup-environment)
|
||||
|
||||
;; XXX because of --always-trust, the trustdb is not created.
|
||||
;; Therefore, we redefine GPG without --always-trust.
|
||||
(define GPG `(,(tool 'gpg) --no-permission-warning))
|
||||
|
||||
(define (exact id)
|
||||
(string-append "=" id))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue