82 |
assert rp_basis.conn is Globals.local_connection |
assert rp_basis.conn is Globals.local_connection |
83 |
if delta_compressed: deltafile = rp_delta.open("rb", 1) |
if delta_compressed: deltafile = rp_delta.open("rb", 1) |
84 |
else: deltafile = rp_delta.open("rb") |
else: deltafile = rp_delta.open("rb") |
|
|
|
|
sigfile = librsync.SigFile(rp_basis.open("rb")) |
|
85 |
patchfile = librsync.PatchedFile(rp_basis.open("rb"), deltafile) |
patchfile = librsync.PatchedFile(rp_basis.open("rb"), deltafile) |
|
|
|
86 |
if outrp: outrp.write_from_fileobj(patchfile) |
if outrp: outrp.write_from_fileobj(patchfile) |
87 |
else: write_via_tempfile(patchfile, rp_basis) |
else: write_via_tempfile(patchfile, rp_basis) |
88 |
|
|