Skip to contentSkip to conversation

devtool: sdk-update fails on remote hosts

PATCH In review Stephano Cetola 1 participant 2 messages Apr 12, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devtool: sdk-update fails on remote hosts

This fixes bug #9426:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9426

Skip .git folders when copying the build system.

---
 meta/lib/oe/copy_buildsystem.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/copy_buildsystem.py +1 -1
index dd0e664..7b9a0ee 100644
@@ -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)
Signature · 1 line
2.8.0
#1 lore raw

Sorry, this belongs in OE-core. Resent to the right mailing list.

Cheers,
Stephano

Quoted 26 lines · Stephano Cetola

This fixes bug #9426:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9426

Skip .git folders when copying the build system.

---
 meta/lib/oe/copy_buildsystem.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/copy_buildsystem.py +1 -1
index dd0e664..7b9a0ee 100644
@@ -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)
Signature · 1 line
2.8.0