From f090d35a7118e596efdb7df8452ccdf5e997fcf9 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 14 Aug 2017 11:35:18 +0200 Subject: [PATCH] use index iterator to accomodate multivol extraction MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit For reasons unknown, the “tar path iterator” always terminates after the last element of the first volume. In fact, it does so even for multi volume archives if the last object in the first volume extends into the second volume. In this case, the object is completely extracted but extraction terminates. --- testing/test_recover.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/testing/test_recover.py b/testing/test_recover.py index 327d0c5..9e1c0b1 100644 --- a/testing/test_recover.py +++ b/testing/test_recover.py @@ -233,7 +233,9 @@ class RecoverTest (BaseTest): # first restore must succeed dtar.restore_backup(target_path=self.dst_path, - backup_tar_path=backup_full) + backup_indexes_paths=[ + "%s/%s" % (bak_path, index_file) + ]) for key, value in self.hash.items (): f = "%s/%s" % (self.dst_path, key) assert os.path.exists (f) -- 1.7.1