summaryrefslogtreecommitdiff
path: root/rdiff-backup/src/robust.py
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-05-01 06:12:51 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-05-01 06:12:51 +0000
commit1d39cdf4d9684b8e0cc20de69135b1a79b002eb4 (patch)
tree98f5414cc22fb89796ac1a2b7fbc3ec88d859ca0 /rdiff-backup/src/robust.py
parent9e0b4c9ae307a0f3590d441152f25ea886a6a2ed (diff)
downloadrdiff-backup-1d39cdf4d9684b8e0cc20de69135b1a79b002eb4.tar.gz
See changelog for 0.6.1
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-6@54 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/src/robust.py')
-rw-r--r--rdiff-backup/src/robust.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/rdiff-backup/src/robust.py b/rdiff-backup/src/robust.py
index c23ff6a..5a7f82e 100644
--- a/rdiff-backup/src/robust.py
+++ b/rdiff-backup/src/robust.py
@@ -295,8 +295,8 @@ class SaveState:
def touch_last_file(cls):
"""Touch last file marker, indicating backup has begun"""
- cls._last_file_sym.touch()
-
+ if not cls._last_file_sym.lstat(): cls._last_file_sym.touch()
+
def touch_last_file_definitive(cls):
"""Create last-file-definitive marker
@@ -403,6 +403,7 @@ class Resume:
def SetSessionInfo(cls):
"""Read data directory and initialize _session_info"""
+ assert Globals.isbackup_writer
silist = []
rp_quad_dict = cls.group_rps_by_time(cls.get_relevant_rps())
times = rp_quad_dict.keys()