]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
recipetool: create: hide missing npm error when called from devtool paule/npm-fixes3
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 12 Apr 2017 05:14:26 +0000 (17:14 +1200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 12 Apr 2017 10:39:31 +0000 (22:39 +1200)
commit5c24a70930d011375e353b5db3b52361fe16e40e
tree541f164af70d5edd5f1a21d668af3e2b7baeebe1
parent69c8ef135d4443e2d1ad8873d205d8d27d699546
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>
scripts/lib/recipetool/create.py
scripts/lib/recipetool/create_npm.py