summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-01-07 13:20:07 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-01-07 13:20:07 -0400
commit9ffba939dbdbc5f4647b754cc0173dd6bc7f9803 (patch)
treed6e320d7074faafe27e33f55c730dba2d9245f4e
parent44c092200c200f3b7d29c65dc0e0dee993b31dae (diff)
work around a strance change in gpg behavior; needs a trustdb to exist even when using --trust-model=always
-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