summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-04-05 17:35:28 +0100
committerLars Wirzenius <liw@liw.fi>2011-04-05 17:35:28 +0100
commit05b1ee68231b9bcb419ad2849ab90300f23882c1 (patch)
tree19b4f25bc8e82ab924821a8da062a0c9f7d80baf
parent239c4f744957068283d8327005df0630ac46bb94 (diff)
downloadobnam-05b1ee68231b9bcb419ad2849ab90300f23882c1.tar.gz
Bypass the callbacks when writing directly to repo.
-rw-r--r--obnamlib/plugins/encryption_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/obnamlib/plugins/encryption_plugin.py b/obnamlib/plugins/encryption_plugin.py
index 89e8f5e5..9f67ee75 100644
--- a/obnamlib/plugins/encryption_plugin.py
+++ b/obnamlib/plugins/encryption_plugin.py
@@ -59,11 +59,11 @@ class EncryptionPlugin(obnamlib.ObnamPlugin):
symmetric_key = obnamlib.generate_symmetric_key(self.symmetric_key_bits)
encrypted = obnamlib.encrypt_with_keyring(symmetric_key, pubkeys)
- repo.fs.write_file(os.path.join(toplevel, 'key'), encrypted)
+ repo.fs.fs.write_file(os.path.join(toplevel, 'key'), encrypted)
encoded = str(pubkeys)
encrypted = obnamlib.encrypt_symmetric(encoded, symmetric_key)
- repo.fs.write_file(os.path.join(toplevel, 'userkeys'), encrypted)
+ repo.fs.fs.write_file(os.path.join(toplevel, 'userkeys'), encrypted)
def toplevel_read_data(self, encrypted, repo, toplevel):
if not self.keyid: