aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSarah Marsh <sarah.marsh.engineer@gmail.com>2018-04-25 20:35:25 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-06-15 11:37:46 +0100
commitc5d0afb8d7faa2c2662264e913dc2733503ec204 (patch)
tree1f8e8c786f6e7078f001acefc5bff5e77236947c /scripts
parent0447453bc1ce8e72c2cfefd8395e98300951713e (diff)
downloadopenembedded-core-contrib-c5d0afb8d7faa2c2662264e913dc2733503ec204.tar.gz
recipetool: fixed uncaught NameError exception
When packaging a node application, a `NameError` can be thrown in create_npm.py if an optional npm dependency does not support Linux. (From OE-Core rev: 8293201d98d368d6322eaa960fb3e7cee2ba9368) Signed-off-by: Sarah Marsh <sarah.marsh@arm.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/recipetool/create_npm.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py
index fb57e705f2..bb42a5ca5c 100644
--- a/scripts/lib/recipetool/create_npm.py
+++ b/scripts/lib/recipetool/create_npm.py
@@ -320,6 +320,7 @@ class NpmRecipeHandler(RecipeHandler):
blacklist = True
break
if (not blacklist and 'linux' not in pkg_os) or '!linux' in pkg_os:
+ pkg = pdata.get('name', 'Unnamed package')
logger.debug(2, "Skipping %s since it's incompatible with Linux" % pkg)
return False
return True