From e7bd005430d475327b87f80538b4c248b3c57a45 Mon Sep 17 00:00:00 2001 From: Colin Moller Date: Mon, 17 Jun 2013 17:51:31 -0700 Subject: [PATCH] Patch GnuPG library to trust keys we've already got to avoid having to manually add them --- GnuPG/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GnuPG/__init__.py b/GnuPG/__init__.py index abe50e7..5fc089a 100644 --- a/GnuPG/__init__.py +++ b/GnuPG/__init__.py @@ -32,5 +32,5 @@ class GPGEncryptor: return encdata def _command(self): - cmd = "/usr/bin/gpg --homedir %s --batch --yes --pgp7 --no-secmem-warning -a -e -r %s" % (self._keyhome, ' -r '.join(self._recipients)) + cmd = "/usr/bin/gpg --trust-model always --homedir %s --batch --yes --pgp7 --no-secmem-warning -a -e -r %s" % (self._keyhome, ' -r '.join(self._recipients)) return cmd.split()