summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/compare.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-11-01 16:46:29 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-11-01 16:46:29 +0000
commitdc634cd890ddea26ffe292c01e6ec53636262afc (patch)
tree9622c641ab726b5a1386d8bb6138bfcde5f427cd /rdiff-backup/rdiff_backup/compare.py
parent07d8d9cb11114ef5f98993e2e50a67762b3d9aaa (diff)
downloadrdiff-backup-dc634cd890ddea26ffe292c01e6ec53636262afc.tar.gz
Compare sha1 hashes when restoring
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@666 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/compare.py')
-rw-r--r--rdiff-backup/rdiff_backup/compare.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/compare.py b/rdiff-backup/rdiff_backup/compare.py
index 2395395..0679b22 100644
--- a/rdiff-backup/rdiff_backup/compare.py
+++ b/rdiff-backup/rdiff_backup/compare.py
@@ -195,7 +195,7 @@ class DataSide(backup.SourceStruct):
def compare_hash(cls, repo_iter):
"""Like above, but also compare sha1 sums of any regular files"""
- def hashs_changed(src_rp, mir_rorp):
+ def hashes_changed(src_rp, mir_rorp):
"""Return 0 if their data hashes same, 1 otherwise"""
if not mir_rorp.has_sha1():
log.Log("Warning: Metadata file has no digest for %s, "
@@ -208,7 +208,7 @@ class DataSide(backup.SourceStruct):
src_iter = cls.get_source_select()
for src_rp, mir_rorp in rorpiter.Collate2Iters(src_iter, repo_iter):
- report = get_basic_report(src_rp, mir_rorp, hashs_changed)
+ report = get_basic_report(src_rp, mir_rorp, hashes_changed)
if report: yield report
else: log_success(src_rp, mir_rorp)