mirror of
https://git.yoctoproject.org/poky
synced 2026-07-16 03:47:03 +00:00
scripts: remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True option from getVar() calls with a regex search and replace. Search made with the following regex: getVar ?\(( ?[^,()]*), True\) (From OE-Core rev: 0a36bd96e6b29fd99a296efc358ca3e9fb5af735) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c4e2c59088
commit
c0f2890c01
@@ -49,7 +49,7 @@ class NpmRecipeHandler(RecipeHandler):
|
||||
|
||||
def _shrinkwrap(self, srctree, localfilesdir, extravalues, lines_before):
|
||||
try:
|
||||
runenv = dict(os.environ, PATH=tinfoil.config_data.getVar('PATH', True))
|
||||
runenv = dict(os.environ, PATH=tinfoil.config_data.getVar('PATH'))
|
||||
bb.process.run('npm shrinkwrap', cwd=srctree, stderr=subprocess.STDOUT, env=runenv, shell=True)
|
||||
except bb.process.ExecutionError as e:
|
||||
logger.warn('npm shrinkwrap failed:\n%s' % e.stdout)
|
||||
@@ -62,7 +62,7 @@ class NpmRecipeHandler(RecipeHandler):
|
||||
lines_before.append('NPM_SHRINKWRAP := "${THISDIR}/${PN}/npm-shrinkwrap.json"')
|
||||
|
||||
def _lockdown(self, srctree, localfilesdir, extravalues, lines_before):
|
||||
runenv = dict(os.environ, PATH=tinfoil.config_data.getVar('PATH', True))
|
||||
runenv = dict(os.environ, PATH=tinfoil.config_data.getVar('PATH'))
|
||||
if not NpmRecipeHandler.lockdownpath:
|
||||
NpmRecipeHandler.lockdownpath = tempfile.mkdtemp('recipetool-npm-lockdown')
|
||||
bb.process.run('npm install lockdown --prefix %s' % NpmRecipeHandler.lockdownpath,
|
||||
@@ -257,7 +257,7 @@ class NpmRecipeHandler(RecipeHandler):
|
||||
if version != '*' and not '/' in version:
|
||||
pkgfullname += "@'%s'" % version
|
||||
logger.debug(2, "Calling getdeps on %s" % pkg)
|
||||
runenv = dict(os.environ, PATH=d.getVar('PATH', True))
|
||||
runenv = dict(os.environ, PATH=d.getVar('PATH'))
|
||||
fetchcmd = "npm view %s --json" % pkgfullname
|
||||
output, _ = bb.process.run(fetchcmd, stderr=subprocess.STDOUT, env=runenv, shell=True)
|
||||
data = self._parse_view(output)
|
||||
|
||||
Reference in New Issue
Block a user