diff options
author | Stephano Cetola <stephano.cetola@linux.intel.com> | 2016-04-13 09:13:47 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-14 10:58:34 +0100 |
commit | 86571dbab781b95c97ed290b26f3391e18e144cd (patch) | |
tree | c1e59e196d67e9f7a672d816c73511dbe83777f3 | |
parent | 83eac650fd28e970b231f50596b14e2e89eca03f (diff) | |
download | openembedded-core-contrib-86571dbab781b95c97ed290b26f3391e18e144cd.tar.gz |
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>
-rw-r--r-- | meta/lib/oe/copy_buildsystem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/copy_buildsystem.py b/meta/lib/oe/copy_buildsystem.py index dd0e6641e3..7b9a0ee065 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) |