use index iterator to accomodate multivol extraction
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 14 Aug 2017 09:35:18 +0000 (11:35 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:09 +0000 (13:34 +0200)
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

index 327d0c5..9e1c0b1 100644 (file)
@@ -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)