1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

added trustdb update/check for stream import as well

This commit is contained in:
Stefan Bellon 2002-09-21 23:59:59 +00:00
parent b9c091bd86
commit 78c754cd70
2 changed files with 16 additions and 3 deletions

View file

@ -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;
}