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: 2017-10~473 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=1261900aeac725e5712e0180600753a9d4c67e60;p=openembedded-core.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 07fcf4d883..6252e915b5 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: