Skip to content

Commit

Permalink
Update compression.py
Browse files Browse the repository at this point in the history
  • Loading branch information
吴坎 authored Mar 25, 2024
1 parent 03826a9 commit 7a8dcfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spack/spack/util/compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7a8dcfd

Please sign in to comment.