You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-backup/obnam/files/obnam-gnupg-ownertrust.patch

16 lines
548 B

diff --git a/obnamlib/encryption.py b/obnamlib/encryption.py
index 9fa849a..1d7643b 100644
--- a/obnamlib/encryption.py
+++ b/obnamlib/encryption.py
@@ -168,6 +168,10 @@ class Keyring(object):
f = open(self._keyring, 'wb')
f.write(self._encoded)
f.close()
+ _gpg(['--import-ownertrust'], stdin='''\
+# List of assigned trustvalues, created Sun 01 Dec 2013 19:13:26 GMT
+# (Use "gpg --import-ownertrust" to restore them)
+''', gpghome=self._gpghome)
def _cleanup(self):
shutil.rmtree(self._gpghome)