Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/taskgraph/run-task/fetch-content
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,10 @@ def repack_archive(
if tarinfo.isfile():
tar.addfile(tarinfo, origtar.extractfile(tarinfo))
else:
# Hard links are relative to the root of the archive,
# so the filter needs to be applied to its destination.
if tarinfo.islnk():
tarinfo.linkname = filter(tarinfo.linkname)
tar.addfile(tarinfo)
else:
# We only change compression here. The tar stream is unchanged.
Expand Down
Loading