mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* trustdb.h, trustdb.c (trustdb_check_or_update): New. If the trustdb
is dirty and --interactive is set, do an --update-trustdb. If not interactive, do a --check_trustdb unless --no-auto-check-trustdb is set. * import.c (import_keys_internal): Moved from here. * keyserver.c (keyserver_refresh): Call it here after all refreshing has happened so that we don't rebuild after each preferred keyserver set of imports, but do one big rebuild at the end. This is Debian bug #293816, noted by Kurt Roeckx.
This commit is contained in:
parent
e040113f3c
commit
2dbfc709ad
5 changed files with 55 additions and 15 deletions
|
@ -624,6 +624,20 @@ trustdb_pending_check(void)
|
|||
return pending_check_trustdb;
|
||||
}
|
||||
|
||||
/* If the trustdb is dirty, and we're interactive, update it.
|
||||
Otherwise, check it unless no-auto-check-trustdb is set. */
|
||||
void
|
||||
trustdb_check_or_update(void)
|
||||
{
|
||||
if(trustdb_pending_check())
|
||||
{
|
||||
if(opt.interactive)
|
||||
update_trustdb();
|
||||
else if(!opt.no_auto_check_trustdb)
|
||||
check_trustdb();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
read_trust_options(byte *trust_model,ulong *created,ulong *nextcheck,
|
||||
byte *marginals,byte *completes,byte *cert_depth)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue