mirror of
https://git.yoctoproject.org/poky
synced 2026-02-26 19:39:40 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ea604b4dba
commit
d845b9960b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user