From: Philipp Gesang Date: Mon, 14 Aug 2017 09:35:18 +0000 (+0200) Subject: use index iterator to accomodate multivol extraction X-Git-Tag: v2.2~7^2~74 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=f090d35a7118e596efdb7df8452ccdf5e997fcf9;p=python-delta-tar use index iterator to accomodate multivol extraction 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. --- 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)