[OE-core] [PATCH] devtool: don't copy .git when building the eSDK
Stephano Cetola
stephano.cetola at linux.intel.com
Wed Apr 13 16:13:47 UTC 2016
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>
---
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)
--
2.8.0
More information about the Openembedded-core
mailing list