summaryrefslogtreecommitdiff
path: root/Utility/Gpg.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Utility/Gpg.hs')
-rw-r--r--Utility/Gpg.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utility/Gpg.hs b/Utility/Gpg.hs
index a2baa74dc..05c03d6ef 100644
--- a/Utility/Gpg.hs
+++ b/Utility/Gpg.hs
@@ -325,6 +325,8 @@ testHarness a = do
base <- getTemporaryDirectory
dir <- mktmpdir $ base </> "gpgtmpXXXXXX"
void $ setEnv var dir True
+ -- For some reason, recent gpg needs a trustdb to be set up.
+ _ <- pipeStrict [Params "--trust-model auto --update-trustdb"] []
_ <- pipeStrict [Params "--import -q"] $ unlines
[testSecretKey, testKey]
return dir