/[rdiff-backup]/rdiff-backup/rdiff_backup/Rdiff.py
ViewVC logotype

Diff of /rdiff-backup/rdiff_backup/Rdiff.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by bescoto, Tue Jul 22 09:07:43 2003 UTC revision 1.11 by bescoto, Sat Aug 13 01:37:44 2005 UTC
# Line 82  def patch_local(rp_basis, rp_delta, outr Line 82  def patch_local(rp_basis, rp_delta, outr
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    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26