"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tools/encryptFile.py" between
Tardis-1.1.5.tar.gz and Tardis-1.2.1.tar.gz

About: Tardis is a system for making encrypted, incremental backups of filesystems.

encryptFile.py  (Tardis-1.1.5):encryptFile.py  (Tardis-1.2.1)
skipping to change at line 113 skipping to change at line 113
logger = logging.getLogger('') logger = logging.getLogger('')
args = processArgs() args = processArgs()
password = Util.getPassword(args.password, args.passwordfile, args.passwordp rog, allowNone=False) password = Util.getPassword(args.password, args.passwordfile, args.passwordp rog, allowNone=False)
(db, cacheDir, crypto) = Util.setupDataConnection(args.database, args.client , password, args.keys, args.dbname, args.dbdir) (db, cacheDir, crypto) = Util.setupDataConnection(args.database, args.client , password, args.keys, args.dbname, args.dbdir)
if args.input: if args.input:
files = json.load(open(args.input, "r")) files = json.load(open(args.input, "r"))
for x in files: for x in files:
try: try:
processFile(args.output, crypto, files[x], args.compress, args.s ignature) processFile(args.output, crypto, x, args.compress, args.signatur e)
except Exception as e: except Exception as e:
print(f"----> {str(e)} Processing {files[x]}") print(f"----> {str(e)} Processing {files[x]}")
traceback.print_exc() traceback.print_exc()
for name in args.names: for name in args.names:
try: try:
processFile(args.output, crypto, name, args.signature) processFile(args.output, crypto, name, args.compress, args.signature )
except Exception as e: except Exception as e:
print(f"----> {str(e)} Processing {name}") print(f"----> {str(e)} Processing {name}")
traceback.print_exc() traceback.print_exc()
if __name__ == "__main__": if __name__ == "__main__":
main() main()
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)