"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tools/encryptDB.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.

encryptDB.py  (Tardis-1.1.5):encryptDB.py  (Tardis-1.2.1)
skipping to change at line 238 skipping to change at line 238
cksId = row['ChecksumId'] cksId = row['ChecksumId']
files = db.readDirectory((inode, device), last) files = db.readDirectory((inode, device), last)
hashes += 1 hashes += 1
if oldHash == lastHash: if oldHash == lastHash:
continue continue
lastHash = oldHash lastHash = oldHash
unique += 1 unique += 1
#logger.debug("Rehashing directory %s (%d, %d)@%d: %s(%d)", cryp to.decryptFilename(row['Name']),inode, device, last, oldHash, cksId) #logger.debug("Rehashing directory %s (%d, %d)@%d: %s(%d)", cryp to.decryptFilename(row['Name']),inode, device, last, oldHash, cksId)
#logger.debug(" Directory contents: %s", str(files)) #logger.debug(" Directory contents: %s", str(files))
(newHash, newSize) = Util.hashDir(crypto, files, True, decrypt=T rue) (newHash, newSize) = Util.hashDir(crypto, files, True)
#logger.info("Rehashed %s => %s. %d files", oldHash, newHash, n ewSize) #logger.info("Rehashed %s => %s. %d files", oldHash, newHash, n ewSize)
bar.update(hashes) bar.update(hashes)
try: try:
if newHash != oldHash: if newHash != oldHash:
z.execute("UPDATE Checksums SET Checksum = :newHash WHER E ChecksumId = :id", {"newHash": newHash, "id": cksId}) z.execute("UPDATE Checksums SET Checksum = :newHash WHER E ChecksumId = :id", {"newHash": newHash, "id": cksId})
except Exception as e: except Exception as e:
logger.error("Caught exception: %s->%s :: %s", oldHash, newH ash,str(e)) logger.error("Caught exception: %s->%s :: %s", oldHash, newH ash,str(e))
batch = r.fetchmany() batch = r.fetchmany()
logger.info("Hashed %d directories (%d unique)", hashes, unique) logger.info("Hashed %d directories (%d unique)", hashes, unique)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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