mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
devtool: don't copy .git when building the eSDK
When creating an eSDK ensure that any .git directories are not included. [ YOCTO #9426 ] (From OE-Core rev: 6a5e2b2196e5654fc54ba5b2e51a390c966fd1b7) Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
83eac650fd
commit
86571dbab7
@@ -8,7 +8,7 @@ def _smart_copy(src, dest):
|
|||||||
# source is a file or a directory.
|
# source is a file or a directory.
|
||||||
mode = os.stat(src).st_mode
|
mode = os.stat(src).st_mode
|
||||||
if stat.S_ISDIR(mode):
|
if stat.S_ISDIR(mode):
|
||||||
shutil.copytree(src, dest, symlinks=True)
|
shutil.copytree(src, dest, symlinks=True, ignore=shutil.ignore_patterns('.git'))
|
||||||
else:
|
else:
|
||||||
shutil.copyfile(src, dest)
|
shutil.copyfile(src, dest)
|
||||||
shutil.copymode(src, dest)
|
shutil.copymode(src, dest)
|
||||||
|
|||||||
Reference in New Issue
Block a user