55 |
|
|
56 |
def get_delta_sigrp_hash(rp_signature, rp_new): |
def get_delta_sigrp_hash(rp_signature, rp_new): |
57 |
"""Like above but also calculate hash of new as close() value""" |
"""Like above but also calculate hash of new as close() value""" |
58 |
log.Log("Getting delta with hash of %s with signature %s" % |
log.Log("Getting delta (with hash) of %s with signature %s" % |
59 |
(rp_new.path, rp_signature.get_indexpath()), 7) |
(rp_new.path, rp_signature.get_indexpath()), 7) |
60 |
return librsync.DeltaFile(rp_signature.open("rb"), |
return librsync.DeltaFile(rp_signature.open("rb"), |
61 |
hash.FileWrapper(rp_new.open("rb"))) |
hash.FileWrapper(rp_new.open("rb"))) |