From: Paul Eggleton Date: Wed, 23 Aug 2017 12:14:47 +0000 (+1200) Subject: recipetool: create: fix broken import in npm module X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~20259 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1261900aeac725e5712e0180600753a9d4c67e60;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git recipetool: create: fix broken import in npm module With "import oe" in create_npm.py you get "AttributeError: module 'oe' has no attribute 'package'" when it tries to call oe.package.npm_split_package_dirs(). Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py index 07fcf4d883f..6252e915b5a 100644 --- a/scripts/lib/recipetool/create_npm.py +++ b/scripts/lib/recipetool/create_npm.py @@ -166,7 +166,7 @@ class NpmRecipeHandler(RecipeHandler): def process(self, srctree, classes, lines_before, lines_after, handled, extravalues): import bb.utils - import oe + import oe.package from collections import OrderedDict if 'buildsystem' in handled: