diff options
Diffstat (limited to '')
-rw-r--r-- | g10/import.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/g10/import.c b/g10/import.c index f02efe6d2..5d38e04f2 100644 --- a/g10/import.c +++ b/g10/import.c @@ -236,6 +236,18 @@ import_keys_stream( IOBUF inp, int fast, import_release_stats_handle (stats); } + /* If no fast import and we really added new keys or merged new + user ids, signatures or revocations, then update/check the + trustdb if the user specified by setting interactive or by + not setting no-auto-check-trustdb */ + if (!fast && (stats->imported || stats->n_uids || + stats->n_sigs || stats->n_revoc)) { + if (opt.interactive) + update_trustdb(); + else if (!opt.no_auto_check_trustdb) + check_trustdb(); + } + return rc; } |