diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-04-06 05:15:51 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-04-06 05:15:51 +0000 |
commit | cf7284af553cb1e4eb622369f82453165a392a7a (patch) | |
tree | aaa27995b003705993cf0c51fba2fccff03a48a3 /rdiff-backup/rdiff_backup | |
parent | 47b8f1e5a63145542800a5b10242540a47a69ae2 (diff) | |
download | rdiff-backup-cf7284af553cb1e4eb622369f82453165a392a7a.tar.gz |
Fixed Popple's symlink bug which threatened source directory
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@575 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r-- | rdiff-backup/rdiff_backup/restore.py | 2 | ||||
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/restore.py b/rdiff-backup/rdiff_backup/restore.py index 038ca91..58dfc2b 100644 --- a/rdiff-backup/rdiff_backup/restore.py +++ b/rdiff-backup/rdiff_backup/restore.py @@ -542,7 +542,7 @@ as data loss may result.\n""" % (self.mirror_rp.get_indexpath(),), 2) inc_list = [] else: inc_rp, inc_list = inc_pair if not mirror_rp: - mirror_rp = self.mirror_rp.new_index(inc_rp.index) + mirror_rp = self.mirror_rp.new_index_empty(inc_rp.index) yield self.__class__(mirror_rp, inc_rp, inc_list) def yield_mirrorrps(self, mirrorrp): diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py index de89026..c383d03 100644 --- a/rdiff-backup/rdiff_backup/rpath.py +++ b/rdiff-backup/rdiff_backup/rpath.py @@ -913,6 +913,10 @@ class RPath(RORPath): """Return similar RPath but with new index""" return self.__class__(self.conn, self.base, index) + def new_index_empty(self, index): + """Return similar RPath with given index, but initialize to empty""" + return self.__class__(self.conn, self.base, index, {'type': None}) + def open(self, mode, compress = None): """Return open file. Supports modes "w" and "r". |