summaryrefslogtreecommitdiffstats
path: root/meta/classes/externalsrc.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/externalsrc.bbclass')
-rw-r--r--meta/classes/externalsrc.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index 529be49a2b..9aabb426d9 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -189,9 +189,9 @@ def srctree_hash_files(d, srcdir=None):
189 189
190 ret = " " 190 ret = " "
191 if os.path.exists(git_dir): 191 if os.path.exists(git_dir):
192 with tempfile.NamedTemporaryFile(dir=git_dir, prefix='oe-devtool-index') as tmp_index: 192 with tempfile.NamedTemporaryFile(prefix='oe-devtool-index') as tmp_index:
193 # Clone index 193 # Clone index
194 shutil.copy2(os.path.join(git_dir, 'index'), tmp_index.name) 194 shutil.copyfile(os.path.join(git_dir, 'index'), tmp_index.name)
195 # Update our custom index 195 # Update our custom index
196 env = os.environ.copy() 196 env = os.environ.copy()
197 env['GIT_INDEX_FILE'] = tmp_index.name 197 env['GIT_INDEX_FILE'] = tmp_index.name