]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: create: hide missing npm error when called from devtool
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 12 Apr 2017 10:41:29 +0000 (22:41 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Apr 2017 21:16:55 +0000 (22:16 +0100)
commit0c2d0fbb1c6c5b82183799eb7ef80074f86bcfc4
tree9444133481fb5e8342ac0a0fe558c8c6313d6f8a
parent8d7cced6e06d7c2037f5ab75ac859f501129532e
recipetool: create: hide missing npm error when called from devtool

If devtool is called with a URL to a source repository containing a
node.js module, we don't know that until recipetool has fetched it, and
due to the structure of the code we have to exit with a special code in
order to let devtool know it needs to build nodejs-native. We also want
to suppress the error message that recipetool would normally print under
these circumstances; there is already a mechanism for this but it wasn't
operative in the case where we're pointed to a source repository rather
than an npm:// URL, so create some plumbing so that we know to hide the
message.

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