mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00: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) (From OE-Core rev: c5d0afb8d7faa2c2662264e913dc2733503ec204) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
13977b08a8
commit
00efe433ec
@@ -320,6 +320,7 @@ class NpmRecipeHandler(RecipeHandler):
|
|||||||
blacklist = True
|
blacklist = True
|
||||||
break
|
break
|
||||||
if (not blacklist and 'linux' not in pkg_os) or '!linux' in pkg_os:
|
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)
|
logger.debug(2, "Skipping %s since it's incompatible with Linux" % pkg)
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user