summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-08-24 00:14:47 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-23 13:48:50 +0100
commit433aa81f920317df863e74af139b4bfec629eac2 (patch)
tree4293be6fd61798bdd867c699c9b2a7093afc30fc
parentff57794b513ac20c73eaf1f593e56eb1709ce5d9 (diff)
downloadpoky-433aa81f920317df863e74af139b4bfec629eac2.tar.gz
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(). (From OE-Core rev: 1261900aeac725e5712e0180600753a9d4c67e60) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/recipetool/create_npm.py2
1 files changed, 1 insertions, 1 deletions
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):
166 166
167 def process(self, srctree, classes, lines_before, lines_after, handled, extravalues): 167 def process(self, srctree, classes, lines_before, lines_after, handled, extravalues):
168 import bb.utils 168 import bb.utils
169 import oe 169 import oe.package
170 from collections import OrderedDict 170 from collections import OrderedDict
171 171
172 if 'buildsystem' in handled: 172 if 'buildsystem' in handled: