summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-07-01 11:35:32 +0200
committerGitHub <noreply@github.com>2024-07-01 11:35:32 +0200
commitfa3f27e8e7e1a59636dfe9beadb31d1e3009c720 (patch)
tree816b5f74631db2473f546159a4c3ad345a372b6b /lib
parent6b0fefff2956dbd88f541e1f079ce71e2141b194 (diff)
downloadspack-fa3f27e8e7e1a59636dfe9beadb31d1e3009c720.tar.gz
spack-fa3f27e8e7e1a59636dfe9beadb31d1e3009c720.tar.bz2
spack-fa3f27e8e7e1a59636dfe9beadb31d1e3009c720.tar.xz
spack-fa3f27e8e7e1a59636dfe9beadb31d1e3009c720.zip
archive.py: undo unrelated changes from #43851 (#44947)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/util/archive.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/spack/spack/util/archive.py b/lib/spack/spack/util/archive.py
index 48e624dee7..950405887a 100644
--- a/lib/spack/spack/util/archive.py
+++ b/lib/spack/spack/util/archive.py
@@ -195,14 +195,12 @@ def reproducible_tarfile_from_prefix(
file_info = tarfile.TarInfo(path_to_name(entry.path))
if entry.is_symlink():
- # strip off long path reg prefix on Windows
- link_dest = readlink(entry.path)
- file_info.linkname = link_dest
+ file_info.type = tarfile.SYMTYPE
+ file_info.linkname = readlink(entry.path)
# According to POSIX: "the value of the file mode bits returned in the
# st_mode field of the stat structure is unspecified." So we set it to
# something sensible without lstat'ing the link.
file_info.mode = 0o755
- file_info.type = tarfile.SYMTYPE
tar.addfile(file_info)
elif entry.is_file(follow_symlinks=False):