Commit b279829e authored by owsla's avatar owsla

Fix --compare-hash options on Windows.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@1035 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 5e65ae4b
New in v1.2.8 (????/??/??)
---------------------------
Fix --compare-hash options on Windows. Thanks to Serge Zub for the fix.
New in v1.2.7 (2009/03/02)
---------------------------
......
......@@ -62,7 +62,7 @@ class Report:
def compute_sha1(rp, compressed = 0):
"""Return the hex sha1 hash of given rpath"""
assert rp.conn is Globals.local_connection # inefficient not to do locally
digest = compute_sha1_fp(rp.open("r", compressed))
digest = compute_sha1_fp(rp.open("rb", compressed))
rp.set_sha1(digest)
return digest
......
New in v1.3.3 (????/??/??)
---------------------------
Fix --compare-hash options on Windows. Thanks to Serge Zub for the fix.
New in v1.3.2 (2009/03/02)
......
......@@ -62,7 +62,7 @@ class Report:
def compute_sha1(rp, compressed = 0):
"""Return the hex sha1 hash of given rpath"""
assert rp.conn is Globals.local_connection # inefficient not to do locally
digest = compute_sha1_fp(rp.open("r", compressed))
digest = compute_sha1_fp(rp.open("rb", compressed))
rp.set_sha1(digest)
return digest
......
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