Commit e4c6dcce authored by bescoto's avatar bescoto

Fixed problem when reg file deleted in middle, reported by Ty Boyack


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@328 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent ba916303
......@@ -180,8 +180,9 @@ class DestinationStruct:
dest_sig = dest_rorp.getRORPath()
if dest_rorp.isreg():
dest_rp = dest_base_rpath.new_index(index)
assert dest_rp.isreg()
dest_sig.setfile(Rdiff.get_signature(dest_rp))
if dest_rp.isreg(): # otherwise file has changed type from reg
dest_sig.setfile(Rdiff.get_signature(dest_rp))
else: dest_sig = dest_rp.getRORPath()
else: dest_sig = rpath.RORPath(index)
return dest_sig
......
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