From d8e8128b50946948731fa7c5847bb6a56ed6c728 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 7 Jan 2014 13:20:07 -0400 Subject: [PATCH] work around a strance change in gpg behavior; needs a trustdb to exist even when using --trust-model=always --- Utility/Gpg.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Utility/Gpg.hs b/Utility/Gpg.hs index a2baa74dc6..05c03d6efb 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