work around a strance change in gpg behavior; needs a trustdb to exist even when using --trust-model=always

This commit is contained in:
Joey Hess 2014-01-07 13:20:07 -04:00
parent 2716edd74a
commit d8e8128b50

View file

@ -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