diff --git a/autospec/tarball.py b/autospec/tarball.py index e0534493..443038ad 100644 --- a/autospec/tarball.py +++ b/autospec/tarball.py @@ -125,7 +125,7 @@ def extract(self, base_path): def extract_tar(self, extraction_path): """Extract tar in path.""" with tarfile.open(self.path) as content: - content.extractall(path=extraction_path) + content.extractall(path=extraction_path, filter='data') def extract_bz2(self, extraction_path): """Extract plain bz2 file in path.""" @@ -144,7 +144,7 @@ def extract_zip(self, extraction_path): def extract_zst(self, extraction_path): """Extract zst in path.""" with tarfile.open(fileobj=zstd.open(self.path, 'rb'), mode='r|') as content: - content.extractall(path=extraction_path) + content.extractall(path=extraction_path, filter='data') def convert_version(ver_str, name):