Skip to content
Open
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 @@ -642,6 +642,10 @@ def extract_stream(reader, dest_dir):
# See extract_archive.
reader.forget()
TarFile.open(fileobj=ifh, mode="r|").extractall(str(dest_dir))
# tarfile stops at the end-of-archive marker, which can leave the
# end of the compressed stream, and its checksum, unread.
while ifh.read(CHUNK_SIZE):
pass
elif magic == ZSTD_MAGIC and shutil.which("zstd"):
# Not tar --use-compress-program: when reading from stdin, tar relays
# it to the decompressor in small blocks, which is several times
Expand Down
Loading