]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: create: refactor code for ensuring npm is available
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 20 Jul 2017 14:48:13 +0000 (16:48 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jul 2017 07:44:19 +0000 (08:44 +0100)
commit8450de16ddb02d863204b411a94c6d84e0f88817
tree83378997fa66942f715e9820864df7ed09232a62
parent2f31f1795bc0c85b1646bc7d9596bbe778cb84e5
recipetool: create: refactor code for ensuring npm is available

Across devtool and recipetool we had an ugly set of code for ensuring
that we can call an npm binary, and much of that ugliness was a result
of not being able to run build tasks when tinfoil was active - if
recipetool found that npm was required and we didn't know beforehand
(e.g. we're fetching from a plain git repository as opposed to an npm://
URL where it's obvious) then it had to exit and return a special result
code, so that devtool knew it needed to build nodejs-native and then
call recipetool again. Now that we are using real build tasks to fetch
and unpack, we can drop most of this and move the code to the one place
where it's still needed (i.e. create_npm where we potentially have to
deal with node.js code in a plain source repository).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/__init__.py
scripts/lib/devtool/standard.py
scripts/lib/recipetool/create.py
scripts/lib/recipetool/create_npm.py