use --trust-model always to avoid prompt from gpg

gpg prompts when encrypting to an untrusted key, but if propellor has been
told to add a key, we implicitly trust it.
This commit is contained in:
Joey Hess 2014-11-11 13:26:31 -04:00
parent be27ae1503
commit 7ea0f460e6
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ gpgEncrypt f s = do
[ "--default-recipient-self"
, "--armor"
, "--encrypt"
, "--trust-model", "always"
] ++ concatMap (\k -> ["--recipient", k]) keyids
encrypted <- writeReadProcessEnv "gpg" opts
Nothing