summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/Main.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-12-22 21:11:02 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-12-22 21:11:02 +0000
commit638b4f9a8f256079c9e32c32ea800939069061a1 (patch)
tree1843927eb52dac44d2277127db3f8aab291d90f6 /rdiff-backup/rdiff_backup/Main.py
parent62e78bb35e451b9aba46e94cb7b3d5f2b12e0154 (diff)
downloadrdiff-backup-638b4f9a8f256079c9e32c32ea800939069061a1.tar.gz
Added warning I must have removed earlier
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@716 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/Main.py')
-rw-r--r--rdiff-backup/rdiff_backup/Main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/Main.py b/rdiff-backup/rdiff_backup/Main.py
index 7f3662b..87243d6 100644
--- a/rdiff-backup/rdiff_backup/Main.py
+++ b/rdiff-backup/rdiff_backup/Main.py
@@ -471,7 +471,9 @@ def Restore(src_rp, dest_rp, restore_as_of = None):
mirror file), dest_rp should be the target rp to be written.
"""
- if not restore_root_set: assert restore_set_root(src_rp)
+ if not restore_root_set and not restore_set_root(src_rp):
+ Log.FatalError("Could not find rdiff-backup repository at "
+ + src_rp.path)
restore_check_paths(src_rp, dest_rp, restore_as_of)
dest_rp.conn.fs_abilities.restore_set_globals(dest_rp)
init_user_group_mapping(dest_rp.conn)