use same code in export-tar as in extract

the partial_extract parameter was missing and that can lead to to many items being preloaded.
This commit is contained in:
Thomas Waldmann 2020-12-15 16:11:30 +01:00
parent 908ea73949
commit 2815ba51fa
1 changed files with 2 additions and 1 deletions

View File

@ -1115,7 +1115,8 @@ class Archiver:
return None, stream
return tarinfo, stream
for item in archive.iter_items(filter, preload=True, hardlink_masters=hardlink_masters):
for item in archive.iter_items(filter, partial_extract=partial_extract,
preload=True, hardlink_masters=hardlink_masters):
orig_path = item.path
if strip_components:
item.path = os.sep.join(orig_path.split(os.sep)[strip_components:])