1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 08:16:54 +00:00

Make sure key files end with a new line

This commit is contained in:
Jonas Borgström 2014-03-28 22:56:40 +01:00
parent 8080f183d6
commit 1db4ba52f9

View file

@ -274,6 +274,7 @@ def save(self, path, passphrase):
with open(path, 'w') as fd:
fd.write('%s %s\n' % (self.FILE_ID, hexlify(self.repository_id).decode('ascii')))
fd.write('\n'.join(textwrap.wrap(b2a_base64(data).decode('ascii'))))
fd.write('\n')
self.path = path
def change_passphrase(self):