Commit bb58abe1 authored by bescoto's avatar bescoto

Removed unnecessary opening of a sigfile


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@611 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 1670a4a1
......@@ -82,10 +82,7 @@ def patch_local(rp_basis, rp_delta, outrp = None, delta_compressed = None):
assert rp_basis.conn is Globals.local_connection
if delta_compressed: deltafile = rp_delta.open("rb", 1)
else: deltafile = rp_delta.open("rb")
sigfile = librsync.SigFile(rp_basis.open("rb"))
patchfile = librsync.PatchedFile(rp_basis.open("rb"), deltafile)
if outrp: outrp.write_from_fileobj(patchfile)
else: write_via_tempfile(patchfile, rp_basis)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment