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
15
g10/import.c
15
g10/import.c
|
@ -1,6 +1,6 @@
|
|||
/* import.c - import a key into our key storage.
|
||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003,
|
||||
* 2004, 2005 Free Software Foundation, Inc.
|
||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
||||
* 2005 Free Software Foundation, Inc.
|
||||
*
|
||||
* This file is part of GnuPG.
|
||||
*
|
||||
|
@ -193,18 +193,15 @@ import_keys_internal( IOBUF inp, char **fnames, int nnames,
|
|||
import_print_stats (stats);
|
||||
import_release_stats_handle (stats);
|
||||
}
|
||||
|
||||
/* If no fast import and the trustdb is dirty (i.e. we added a key
|
||||
or userID that had something other than a selfsig, a signature
|
||||
that was other than a selfsig, or any revocation), then
|
||||
update/check the trustdb if the user specified by setting
|
||||
interactive or by not setting no-auto-check-trustdb */
|
||||
if (!(options&IMPORT_FAST) && trustdb_pending_check())
|
||||
{
|
||||
if (opt.interactive)
|
||||
update_trustdb();
|
||||
else if (!opt.no_auto_check_trustdb)
|
||||
check_trustdb();
|
||||
}
|
||||
|
||||
if(!(options&IMPORT_FAST))
|
||||
trustdb_check_or_update();
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue