Skip to content

fix read_cb bug, the modified version should be correct using the latest... - #5

Merged
travcunn merged 1 commit into
smartfile:masterfrom
shawnh310:master
Nov 1, 2014
Merged

fix read_cb bug, the modified version should be correct using the latest...#5
travcunn merged 1 commit into
smartfile:masterfrom
shawnh310:master

Conversation

@shawnh310

Copy link
Copy Markdown

import librsync
import os
from cStringIO import StringIO

src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fsmartfile%2Fpython-librsync%2Fpull%2FFF"
print src
dst = 'FF123FF'
print dst
src_sig = librsync.signature(StringIO(src))
delta = librsync.delta(StringIO(dst), src_sig).read()
print delta
out = librsync.patch(StringIO(src), StringIO(delta))
print out.read()

The output from original code is:
FF
FF123FF
rs6AFF123E
FF123

Patched output is FF123 but should be FF123FF.

This pull request fixed this issue.

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling eb80829 on shawnh310:master into * on smartfile:master*.

@travcunn
travcunn merged commit eb80829 into smartfile:master Nov 1, 2014
travcunn pushed a commit that referenced this pull request Nov 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants