[oe-commits] [openembedded-core] 10/68: devtool: upgrade: fix error of import recipeutils
git at git.openembedded.org
git at git.openembedded.org
Thu Feb 23 20:50:41 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 5f140359f859fea9cfe8c8d9c9584bceec875adb
Author: Luck Hoang <huyht1205 at gmail.com>
AuthorDate: Mon Feb 20 16:37:58 2017 +0700
devtool: upgrade: fix error of import recipeutils
upgrade.py imports oe.recipeutils in meta/lib/ but path to oe.recipeutils
is not provided. This fails populate_sdk_ext.
Signed-off-by: Luck Hoang <huyht1205 at gmail.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/lib/devtool/upgrade.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index c334342..05fb9e5 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -27,6 +27,10 @@ import argparse
import scriptutils
import errno
import bb
+
+devtool_path = os.path.dirname(os.path.realpath(__file__)) + '/../../../meta/lib'
+sys.path = sys.path + [devtool_path]
+
import oe.recipeutils
from devtool import standard
from devtool import exec_build_env_command, setup_tinfoil, DevtoolError, parse_recipe, use_external_build
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list