From: Stephano Cetola Date: Wed, 13 Apr 2016 16:13:47 +0000 (-0700) Subject: devtool: don't copy .git when building the eSDK X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~26155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a5e2b2196e5654fc54ba5b2e51a390c966fd1b7;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git devtool: don't copy .git when building the eSDK When creating an eSDK ensure that any .git directories are not included. [ YOCTO #9426 ] Signed-off-by: Stephano Cetola Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/copy_buildsystem.py b/meta/lib/oe/copy_buildsystem.py index dd0e6641e3a..7b9a0ee0651 100644 --- a/meta/lib/oe/copy_buildsystem.py +++ b/meta/lib/oe/copy_buildsystem.py @@ -8,7 +8,7 @@ def _smart_copy(src, dest): # source is a file or a directory. mode = os.stat(src).st_mode if stat.S_ISDIR(mode): - shutil.copytree(src, dest, symlinks=True) + shutil.copytree(src, dest, symlinks=True, ignore=shutil.ignore_patterns('.git')) else: shutil.copyfile(src, dest) shutil.copymode(src, dest)