From 4d274a0bdb3d27b54b946de8f930e2acfd786dcf Mon Sep 17 00:00:00 2001 From: bescoto Date: Sun, 28 Sep 2003 01:39:38 +0000 Subject: Fixed bug restoring without mirror_metadata git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-12@455 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/CHANGELOG | 5 ++++- rdiff-backup/rdiff_backup/restore.py | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index 9d1cee8..3b3514a 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -1,4 +1,4 @@ -New in v0.12.5 (??????????) +New in v0.12.5 (2003/09/27) --------------------------- Fixed bug in --test-server when using --restrict security options @@ -10,6 +10,9 @@ Thanks to Morten Werner Olsen for bug report. Fixed logic bug that could make restoring extremely slow and waste memory. Thanks for Jacques Botha for report. +Fixed bug restoring some directories when mirror_metadata file was +missing (as when made by 0.10.x version). + New in v0.12.4 (2003/09/13) --------------------------- diff --git a/rdiff-backup/rdiff_backup/restore.py b/rdiff-backup/rdiff_backup/restore.py index 31fa5a5..292aa42 100644 --- a/rdiff-backup/rdiff_backup/restore.py +++ b/rdiff-backup/rdiff_backup/restore.py @@ -185,7 +185,9 @@ class MirrorStruct: rorp = rf.get_attribs() yield rorp if rorp.isdir(): - for sub_rf in rf.yield_sub_rfs(): yield sub_rf.get_attribs() + for sub_rf in rf.yield_sub_rfs(): + for attribs in cls.get_rorp_iter_from_rf(sub_rf): + yield attribs def subtract_indicies(cls, index, rorp_iter): """Subtract index from index of each rorp in rorp_iter -- cgit v1.2.1