dockerTools.streamLayeredImage: Correctly copy hardlinks

This commit is contained in:
Utku Demir 2020-07-06 16:42:03 +12:00
parent cc46362929
commit 2ae2186dfd
No known key found for this signature in database
GPG key ID: F3F8629C3E0BF60B

View file

@ -97,6 +97,7 @@ def archive_paths_to(obj, paths, mtime, add_nix, filter=None):
if ti.islnk():
ti.type = tarfile.REGTYPE
ti.linkname = ""
ti.size = filename.stat().st_size
ti = apply_filters(ti)
if ti.isfile():