From 7a8dcfddd1ae4970f4eae35acc1e271b427ce791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=9D=8E?= Date: Tue, 26 Mar 2024 02:36:33 +0800 Subject: [PATCH] Update compression.py --- lib/spack/spack/util/compression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/util/compression.py b/lib/spack/spack/util/compression.py index e381b11..a42744d 100644 --- a/lib/spack/spack/util/compression.py +++ b/lib/spack/spack/util/compression.py @@ -197,7 +197,7 @@ def _py_untar(archive_file: str, remove_archive_file: bool = False) -> str: archive_file = archive_file_no_ext + "-input" shutil.move(archive_file_no_ext, archive_file) f_tar = tarfile.open(archive_file) - f_members = _data_filter(member=f_tar.getmembers(), dest_path=".") + f_members = [_data_filter(member=m, dest_path=".") for m in f_tar.getmembers()] f_tar.extractall(members=f_members) f_tar.close() if remove_archive_file: