[OE-core] [PATCH] devtool: sdk-update fails on remote hosts
Stephano Cetola
stephano.cetola at linux.intel.com
Tue Apr 12 22:08:07 UTC 2016
This fixes bug #9426:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9426
Skip .git folders when copying the build system.
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