mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-12 23:44:20 +00:00
aedi: handle symlinks when merging paths
symbolic links are kept unchanged instead of merging files they point to
This commit is contained in:
parent
d7937719ae
commit
37bc39c57f
1 changed files with 4 additions and 0 deletions
|
@ -215,6 +215,10 @@ class Builder(object):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _merge_file(self, src: Path, src_sub_paths: typing.Sequence[Path], dst_path: Path):
|
def _merge_file(self, src: Path, src_sub_paths: typing.Sequence[Path], dst_path: Path):
|
||||||
|
if src.is_symlink():
|
||||||
|
shutil.copy(src_sub_paths[0], dst_path, follow_symlinks=False)
|
||||||
|
return
|
||||||
|
|
||||||
with open(src, 'rb') as f:
|
with open(src, 'rb') as f:
|
||||||
header = f.read(8)
|
header = f.read(8)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue