Skip to content

Commit b12739f

Browse files
committed
utils: preserve symlinks when creating tars
1 parent feea93e commit b12739f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonbuild/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def download_entry(key: str, dest_path: pathlib.Path, local_name=None) -> pathli
148148

149149

150150
def create_tar_from_directory(fh, base_path: pathlib.Path, path_prefix=None):
151-
with tarfile.open(name="", mode="w", fileobj=fh, dereference=True) as tf:
151+
with tarfile.open(name="", mode="w", fileobj=fh) as tf:
152152
for root, dirs, files in os.walk(base_path):
153153
dirs.sort()
154154

0 commit comments

Comments
 (0)