mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Don't process symbolic links for CI
This commit is contained in:
@ -131,11 +131,11 @@ def _copy_contents(dst_dir, contents):
|
|||||||
dst_dir_name = basename(dst_dir)
|
dst_dir_name = basename(dst_dir)
|
||||||
|
|
||||||
if dst_dir_name == "src" and len(items['dirs']) == 1:
|
if dst_dir_name == "src" and len(items['dirs']) == 1:
|
||||||
copytree(list(items['dirs']).pop(), dst_dir)
|
copytree(list(items['dirs']).pop(), dst_dir, symlinks=True)
|
||||||
else:
|
else:
|
||||||
makedirs(dst_dir)
|
makedirs(dst_dir)
|
||||||
for d in items['dirs']:
|
for d in items['dirs']:
|
||||||
copytree(d, join(dst_dir, basename(d)))
|
copytree(d, join(dst_dir, basename(d)), symlinks=True)
|
||||||
|
|
||||||
if not items['files']:
|
if not items['files']:
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user