work around a strance change in gpg behavior; needs a trustdb to exist even when using --trust-model=always
This commit is contained in:
parent
2716edd74a
commit
d8e8128b50
1 changed files with 2 additions and 0 deletions
|
@ -325,6 +325,8 @@ testHarness a = do
|
||||||
base <- getTemporaryDirectory
|
base <- getTemporaryDirectory
|
||||||
dir <- mktmpdir $ base </> "gpgtmpXXXXXX"
|
dir <- mktmpdir $ base </> "gpgtmpXXXXXX"
|
||||||
void $ setEnv var dir True
|
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
|
_ <- pipeStrict [Params "--import -q"] $ unlines
|
||||||
[testSecretKey, testKey]
|
[testSecretKey, testKey]
|
||||||
return dir
|
return dir
|
||||||
|
|
Loading…
Reference in a new issue