diff options
-rw-r--r-- | scripts/lib/devtool/standard.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index f33018de3f..52efeae938 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py | |||
@@ -260,14 +260,10 @@ def add(args, config, basepath, workspace): | |||
260 | f.write('}\n') | 260 | f.write('}\n') |
261 | 261 | ||
262 | if bb.data.inherits_class('npm', rd): | 262 | if bb.data.inherits_class('npm', rd): |
263 | f.write('do_install_append() {\n') | 263 | f.write('python do_configure_append() {\n') |
264 | f.write(' # Remove files added to source dir by devtool/externalsrc\n') | 264 | f.write(' pkgdir = d.getVar("NPM_PACKAGE")\n') |
265 | f.write(' rm -f ${NPM_INSTALLDIR}/singletask.lock\n') | 265 | f.write(' lockfile = os.path.join(pkgdir, "singletask.lock")\n') |
266 | f.write(' rm -rf ${NPM_INSTALLDIR}/.git\n') | 266 | f.write(' bb.utils.remove(lockfile)\n') |
267 | f.write(' rm -rf ${NPM_INSTALLDIR}/oe-local-files\n') | ||
268 | f.write(' for symlink in ${EXTERNALSRC_SYMLINKS} ; do\n') | ||
269 | f.write(' rm -f ${NPM_INSTALLDIR}/${symlink%%:*}\n') | ||
270 | f.write(' done\n') | ||
271 | f.write('}\n') | 267 | f.write('}\n') |
272 | 268 | ||
273 | # Check if the new layer provides recipes whose priorities have been | 269 | # Check if the new layer provides recipes whose priorities have been |