[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Duplicity-talk] Setting the PASSPHRASE inside the duplicity program its
From: |
Charles Knowlton |
Subject: |
[Duplicity-talk] Setting the PASSPHRASE inside the duplicity program itself |
Date: |
Mon, 26 Mar 2007 15:07:15 -0500 |
How would I set the PASSPHRASE inside the duplicity program itself?
I am looking at this section of code:
def get_passphrase():
"""Get passphrase from environment or, failing that, from user"""
try: return os.environ['PASSPHRASE']
except KeyError: pass
if not globals.encryption: return "" # assume we don't need passphrase
log.Log("PASSPHRASE variable not set, asking user.", 5)
while 1:
pass1 = getpass.getpass("GnuPG passphrase: ")
pass2 = getpass.getpass("Retype to confirm: ")
if pass1 == pass2: return pass1
print "First and second passphrases do not match! Please try
again."
I had tried setting the variable pass1 = 'test'
but that didn't work. I got this error message:
File "/usr/bin/duplicity2", line 38
self_pass1 = "crap"
^
IndentationError: expected an indented block
I don't have a clue as to what it means and I don't know anything
about Python.
Regards,
Charles Knowlton
- [Duplicity-talk] Setting the PASSPHRASE inside the duplicity program itself,
Charles Knowlton <=