When encrypted ensure we are using a file that ends in .crypt and use the pw tool for the uploader

This commit is contained in:
Joshua Harlow
2012-09-12 16:41:54 -07:00
parent 0ed0c4afd2
commit 163b267379
2 changed files with 11 additions and 14 deletions

View File

@@ -47,8 +47,10 @@ class FixedCryptedFileKeyring(CryptedFileKeyring):
class KeyringProxy(object):
def __init__(self, path, keyring_encrypted=False, enable_prompt=True, random_on_empty=True):
self.path = path
self.keyring_encrypted = keyring_encrypted
if self.keyring_encrypted and not path.endswith(".crypt"):
path = "%s.crypt" % (path)
self.path = path
if keyring_encrypted:
self.ring = FixedCryptedFileKeyring()
else: