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 /meta/lib/oe | |
parent | 83eac650fd28e970b231f50596b14e2e89eca03f (diff) | |
download | poky-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>
Diffstat (limited to 'meta/lib/oe')
-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): | |||
8 | # source is a file or a directory. | 8 | # source is a file or a directory. |
9 | mode = os.stat(src).st_mode | 9 | mode = os.stat(src).st_mode |
10 | if stat.S_ISDIR(mode): | 10 | if stat.S_ISDIR(mode): |
11 | shutil.copytree(src, dest, symlinks=True) | 11 | shutil.copytree(src, dest, symlinks=True, ignore=shutil.ignore_patterns('.git')) |
12 | else: | 12 | else: |
13 | shutil.copyfile(src, dest) | 13 | shutil.copyfile(src, dest) |
14 | shutil.copymode(src, dest) | 14 | shutil.copymode(src, dest) |