[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4705/8267] devtool: upgrade: fix error of import recipeutils



commit 1d133ec021a15b0e803850d8e7b442fa7b47ac7e
Author: Luck Hoang <huyht1205 gmail com>
Date:   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.
    
    (From OE-Core rev: 5f140359f859fea9cfe8c8d9c9584bceec875adb)
    
    Signed-off-by: Luck Hoang <huyht1205 gmail com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 scripts/lib/devtool/upgrade.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]