diff options
author | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-03-25 07:51:33 +0000 |
---|---|---|
committer | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-03-25 07:51:33 +0000 |
commit | a2da3ed31d63e53e80aaf84e1e8b90a53f44713d (patch) | |
tree | 0e0b980419e2a3d317d04c55b27d395f97e4df7a /rdiff-backup/rdiff_backup/highlevel.py | |
parent | c28f6258d10db6957df8e692c510edd4fb6a36e4 (diff) | |
download | rdiff-backup-a2da3ed31d63e53e80aaf84e1e8b90a53f44713d.tar.gz |
Added support for gzipped increments
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@23 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/highlevel.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/highlevel.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/rdiff-backup/rdiff_backup/highlevel.py b/rdiff-backup/rdiff_backup/highlevel.py index 7603c21..2b366f2 100644 --- a/rdiff-backup/rdiff_backup/highlevel.py +++ b/rdiff-backup/rdiff_backup/highlevel.py @@ -238,7 +238,7 @@ class HLDestinationStruct: try: while 1: - try: dsrp = cls.check_skip_error(error_checked) + try: dsrp = cls.check_skip_error(error_checked, dsrp) except StopIteration: break if checkpoint: SaveState.checkpoint_mirror(finalizer, dsrp) except: cls.handle_last_error(dsrp, finalizer) @@ -272,7 +272,7 @@ class HLDestinationStruct: try: while 1: - try: dsrp = cls.check_skip_error(error_checked) + try: dsrp = cls.check_skip_error(error_checked, dsrp) except StopIteration: break SaveState.checkpoint_inc_backup(ITR, finalizer, dsrp) except: cls.handle_last_error(dsrp, finalizer, ITR) @@ -281,7 +281,7 @@ class HLDestinationStruct: if Globals.preserve_hardlinks: Hardlink.final_writedata() SaveState.checkpoint_remove() - def check_skip_error(cls, thunk): + def check_skip_error(cls, thunk, dsrp): """Run thunk, catch certain errors skip files""" try: return thunk() except (IOError, OSError, SkipFileException), exp: @@ -294,7 +294,8 @@ class HLDestinationStruct: 26] # Requested by Campbell (see list) - # happens on some NT systems ))): - Log("Skipping file", 2) + Log("Skipping file because of error after %s" % + (dsrp and dsrp.index,), 2) return None else: raise |