diff options
-rw-r--r-- | rdiff-backup/CHANGELOG | 6 | ||||
-rw-r--r-- | rdiff-backup/rdiff_backup/hash.py | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index 552b771..92ec3ba 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -1,3 +1,9 @@ +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) --------------------------- diff --git a/rdiff-backup/rdiff_backup/hash.py b/rdiff-backup/rdiff_backup/hash.py index 7758dc9..b438743 100644 --- a/rdiff-backup/rdiff_backup/hash.py +++ b/rdiff-backup/rdiff_backup/hash.py @@ -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 |