summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/Hardlink.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-06-21 01:29:18 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-06-21 01:29:18 +0000
commit5015e6c7a84243200c00c467d892b1b2105ee9bb (patch)
tree46a6533237dbe77d60c46ac319730b80c0dd7d79 /rdiff-backup/rdiff_backup/Hardlink.py
parentf4da6ca2f3034ae3d5cd08062bb5d964f63789af (diff)
downloadrdiff-backup-5015e6c7a84243200c00c467d892b1b2105ee9bb.tar.gz
Fixed quoted hardlinks, added --windows-restore, fixed a couple tests
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@320 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/Hardlink.py')
-rw-r--r--rdiff-backup/rdiff_backup/Hardlink.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/Hardlink.py b/rdiff-backup/rdiff_backup/Hardlink.py
index f9836fb..453672e 100644
--- a/rdiff-backup/rdiff_backup/Hardlink.py
+++ b/rdiff-backup/rdiff_backup/Hardlink.py
@@ -169,8 +169,7 @@ def restore_link(index, rpath):
def link_rp(diff_rorp, dest_rpath, dest_root = None):
"""Make dest_rpath into a link using link flag in diff_rorp"""
if not dest_root: dest_root = dest_rpath # use base of dest_rpath
- dest_link_rpath = rpath.RPath(dest_root.conn, dest_root.base,
- diff_rorp.get_link_flag())
+ dest_link_rpath = dest_root.new_index(diff_rorp.get_link_flag())
dest_rpath.hardlink(dest_link_rpath.path)