[oe-commits] [openembedded-core] 08/28: recipetool: fixed uncaught NameError exception

git at git.openembedded.org git at git.openembedded.org
Thu May 3 23:08:56 UTC 2018


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

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

commit 3dbcc666a395eb39506ee28d6a6bb7076e323fb1
Author: Sarah Marsh <sarah.marsh.engineer at gmail.com>
AuthorDate: Wed Apr 25 20:35:25 2018 -0500

    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 at arm.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 scripts/lib/recipetool/create_npm.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py
index fb57e70..bb42a5c 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

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


More information about the Openembedded-commits mailing list