Patch by Andreas Barth: added --secret-keyring /dev/null
authorjoey <>
Sun, 23 Jan 2005 09:45:50 +0000 (09:45 +0000)
committerjoey <>
Sun, 23 Jan 2005 09:45:50 +0000 (09:45 +0000)
This is required for ud-mailgate to work with sarge as well.  The
semantics of the option --no-default-keyring of GnuPG has been changed
between woody and sarge:

--no-default-keyring
  Do not add the default keyrings to the list of keyrings.  Note that
  GnuPG will not operate without any keyrings, so if you use this
  option and do not provide alternate keyrings via --keyring or
  --secret-keyring, then GnuPG will still use the default public or
  secret keyrings.  (and won't work if they don't exist)

userdir_gpg.py

index 1f3b1cb..9f494fb 100644 (file)
@@ -31,8 +31,12 @@ import rfc822, time, fcntl, FCNTL, anydbm
 # General GPG options
 GPGPath = "gpg"
 # "--load-extension","rsa",
-GPGBasicOptions = ["--no-options","--batch",
-          "--no-default-keyring","--always-trust"];
+GPGBasicOptions = [
+   "--no-options",
+   "--batch",
+   "--no-default-keyring",
+   "--secret-keyring", "/dev/null",
+   "--always-trust"];
 GPGKeyRings = [];
 GPGSigOptions = ["--output","-"];
 GPGSearchOptions = ["--dry-run","--with-colons","--fingerprint"];