[oe-commits] [openembedded-core] 01/10: npm.bbclass: allow overriding NPM_INSTALL_DEV

git at git.openembedded.org git at git.openembedded.org
Thu Oct 25 13:54:24 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit b53d5094d5e05f9c1955c8565d777ad74f668f7e
Author: Jef Driesen <jef.driesen at niko.eu>
AuthorDate: Tue Oct 23 13:43:24 2018 +0200

    npm.bbclass: allow overriding NPM_INSTALL_DEV
    
    Commit b1f10b18eaf6c8009e86863ca4a26f429de97082 added the NPM_INSTALL_DEV
    variable. But due to the use of simple assignment, a recipe can't override its
    value.
    
    Signed-off-by: Jef Driesen <jef.driesen at niko.eu>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/npm.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index 30febcf..6dbae6b 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -22,7 +22,7 @@ def npm_oe_arch_map(target_arch, d):
     return target_arch
 
 NPM_ARCH ?= "${@npm_oe_arch_map(d.getVar('TARGET_ARCH'), d)}"
-NPM_INSTALL_DEV = "0"
+NPM_INSTALL_DEV ?= "0"
 
 npm_do_compile() {
 	# Copy in any additionally fetched modules

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list