Commit 3ec0d8ba authored by bescoto's avatar bescoto

Fix for restore without mirror_metadata


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@360 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 46f6e6e3
......@@ -3,6 +3,9 @@ New in v0.13.1 (2003/08/??)
Patch by Arkadiusz Patyk fixes building with Python 2.3c1.
Restore of archives made by 0.10.x and earlier fixed, although hard
link information is not restored. (Bug reported by Jeff Lessem.)
New in v0.13.0 (2003/07/22)
---------------------------
......
......@@ -180,8 +180,7 @@ class MirrorStruct:
rorp = rf.get_attribs()
yield rorp
if rorp.isdir():
for sub_rf in rf.yield_sub_rfs():
for rorp in yield_attribs(sub_rf): yield rorp
for sub_rf in rf.yield_sub_rfs(): yield sub_rf.get_attribs()
def subtract_indicies(cls, index, rorp_iter):
"""Subtract index from index of each rorp in rorp_iter
......
......@@ -295,6 +295,19 @@ class Final(PathSetter):
popen_fp.close()
assert wc_output.split() == ["0", "0", "0"], wc_output
def testLegacy(self):
"""Test restoring directory with no mirror_metadata file"""
self.delete_tmpdirs()
self.set_connections(None, None, None, None)
self.exec_rb(10000, 'testfiles/various_file_types',
'testfiles/output')
self.exec_rb(20000, 'testfiles/empty', 'testfiles/output')
assert not os.system(MiscDir + '/myrm testfiles/output/rdiff-backup-data/mirror_metadata*')
self.exec_rb_extra_args(None, '-r0', 'testfiles/output',
'testfiles/restoretarget1')
assert CompareRecursive(Local.vftrp, Local.rpout1,
compare_hardlinks = 0)
class FinalMisc(PathSetter):
"""Test miscellaneous operations like list-increments, etc.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment