summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/restore.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-03-02 22:57:27 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-03-02 22:57:27 +0000
commitbee7bdc833bfb8dbe9e1cb5d804688fbe425dfb9 (patch)
tree1fff6852050980474857abd801034fc5883c56f1 /rdiff-backup/rdiff_backup/restore.py
parent741a80f344994a5746904ad9cb0909a5c6389b1b (diff)
downloadrdiff-backup-bee7bdc833bfb8dbe9e1cb5d804688fbe425dfb9.tar.gz
Fixed bug regressing when second backup was unrecoverable
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@288 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/restore.py')
-rw-r--r--rdiff-backup/rdiff_backup/restore.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/restore.py b/rdiff-backup/rdiff_backup/restore.py
index 62c1af3..d9d8e58 100644
--- a/rdiff-backup/rdiff_backup/restore.py
+++ b/rdiff-backup/rdiff_backup/restore.py
@@ -296,7 +296,9 @@ class RestoreFile:
"""
def __init__(self, mirror_rp, inc_rp, inc_list):
- assert mirror_rp.index == inc_rp.index, (mirror_rp, inc_rp)
+ assert mirror_rp.index == inc_rp.index, \
+ ("mirror and inc indicies don't match: %s %s" %
+ (mirror_rp.get_indexpath(), inc_rp.get_indexpath()))
self.index = mirror_rp.index
self.mirror_rp = mirror_rp
self.inc_rp, self.inc_list = inc_rp, inc_list