gpg: Do not delete any keys if --dry-run is passed.
authorWerner Koch <wk@gnupg.org>
Mon, 20 May 2019 10:31:55 +0000 (12:31 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 20 May 2019 10:31:55 +0000 (12:31 +0200)
commit110a4550179fd1faeee8d2f17a33ed7807a397ae
tree8d5b840f530e5cbf75c486957451fd273f0a5b72
parent386bacd9741639d7f5e83c81628d3cad78407197
gpg: Do not delete any keys if --dry-run is passed.

* g10/delkey.c (do_delete_key): Don't delete the keyblock on dry runs.
Do not clear the ownertrust.  Do not let the agent delete the key.
--

Co-authored-by: Matheus Afonso Martins Moreira
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/delkey.c