[oe-commits] [openembedded-core] 18/23: devtool: don't copy .git when building the eSDK
git at git.openembedded.org
git at git.openembedded.org
Wed Apr 13 23:00:24 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 1c2446d8f2f915a95171cd7de82fb8085869178f
Author: Stephano Cetola <stephano.cetola at linux.intel.com>
AuthorDate: Wed Apr 13 09:13:47 2016 -0700
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 <stephano.cetola at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/lib/oe/copy_buildsystem.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oe/copy_buildsystem.py b/meta/lib/oe/copy_buildsystem.py
index dd0e664..7b9a0ee 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)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list