summaryrefslogtreecommitdiffstats
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-05-04 09:54:48 +0100
commit8293201d98d368d6322eaa960fb3e7cee2ba9368 (patch)
tree1f8e8c786f6e7078f001acefc5bff5e77236947c /scripts
parent6e3ea2f17bcd9d942f838ba972338d92e95f65d4 (diff)
downloadopenembedded-core-contrib-8293201d98d368d6322eaa960fb3e7cee2ba9368.tar.gz
openembedded-core-contrib-8293201d98d368d6322eaa960fb3e7cee2ba9368.tar.bz2
openembedded-core-contrib-8293201d98d368d6322eaa960fb3e7cee2ba9368.zip
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. Signed-off-by: Sarah Marsh <sarah.marsh@arm.com> Signed-off-by: Ross Burton <ross.burton@intel.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