gpg: don't delete any keys if --dry-run is passed
AbandonedPublic

Authored by matheusmoreira on Wed, May 8, 11:48 PM.

Details

Summary
  • g10/delkey.c (do_delete_key): Don't delete the key block on dry runs.

(do_delete_key): Don't clear ownertrusts on dry runs.
(gpg_agent_delete_secret_key): Don't contact the agent on dry runs.

Signed-off-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>

Test Plan

All key deletion commands should do nothing if the --dry-run is given.

Diff Detail

Repository
rG GnuPG
Lint
Lint Skipped
Unit
Unit Tests Skipped