chiark / gitweb /
dirmngr: Avoid automatically checking upstream swdb.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 21 Nov 2016 04:09:24 +0000 (23:09 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
* dirmngr/dirmngr.c (housekeeping_thread): Avoid automatically
checking upstream's software database.  In Debian, software updates
should be handled by the distro mechanism, and additional upstream
checks only confuse the user.
* doc/dirmngr.texi: document that --allow-version-check does nothing.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Gbp-Pq: Topic dirmngr-idling
Gbp-Pq: Name 0004-dirmngr-Avoid-automatically-checking-upstream-swdb.patch

dirmngr/dirmngr.c
doc/dirmngr.texi

index a8be56fa4b6341d4594b422c89adee4875f98445..746f43d109691be0d0f7c50ec75c94b1361e3a49 100644 (file)
@@ -1771,7 +1771,6 @@ static void *
 housekeeping_thread (void *arg)
 {
   static int sentinel;
-  struct server_control_s ctrlbuf;
 
   (void)arg;
 
@@ -1784,18 +1783,6 @@ housekeeping_thread (void *arg)
   if (opt.verbose > 1)
     log_info ("starting housekeeping\n");
 
-  memset (&ctrlbuf, 0, sizeof ctrlbuf);
-  dirmngr_init_default_ctrl (&ctrlbuf);
-
-  if (network_activity_seen)
-    {
-      network_activity_seen = 0;
-      if (opt.use_tor || opt.allow_version_check)
-        dirmngr_load_swdb (&ctrlbuf, 0);
-    }
-
-  dirmngr_deinit_default_ctrl (&ctrlbuf);
-
   if (opt.verbose > 1)
     log_info ("ready with housekeeping\n");
   sentinel--;
index e27157c007e7db6d2a81e66496cb994898e12799..dd104273d8a8884960592c5f2ee24e8dcc497f66 100644 (file)
@@ -266,12 +266,11 @@ seconds.
 @item --allow-version-check
 @opindex allow-version-check
 Allow Dirmngr to connect to @code{https://versions.gnupg.org} to get
-the list of current software versions.  If this option is enabled, or
-if @option{use-tor} is active, the list is retrieved when the local
-copy does not exist or is older than 5 to 7 days.  See the option
-@option{--query-swdb} of the command @command{gpgconf} for more
-details.  Note, that regardless of this option a version check can
-always be triggered using this command:
+the list of current software versions.  On debian-packaged versions,
+this option does nothing since software updates should be handled by
+the distribution.  See the option @option{--query-swdb} of the command
+@command{gpgconf} for more details.  Note, that regardless of this
+option a version check can always be triggered using this command:
 
 @example
        gpg-connect-agent --dirmngr 'loadswdb --force' /bye