aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-08-22 21:56:30 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:52 +1200
commit510dec2ee8b84cd362c1290c51f2a404b8e88706 (patch)
treeae8b99ca7fef0151d2124c6d05052fed7235ba40
parent4c2e9ec1f90f97db403e572596051736919ade8e (diff)
downloadopenembedded-core-contrib-510dec2ee8b84cd362c1290c51f2a404b8e88706.tar.gz
rrs/tools/rrs_{distros,upstream_history}: Add path for poky meta lib
Due to bitbake client/server changes now the meta path isn't included to sys.path when load tinfoil. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
-rwxr-xr-xrrs/tools/rrs_distros.py5
-rwxr-xr-xrrs/tools/rrs_upstream_history.py4
2 files changed, 9 insertions, 0 deletions
diff --git a/rrs/tools/rrs_distros.py b/rrs/tools/rrs_distros.py
index 7b5610b37b..ead79d0bd1 100755
--- a/rrs/tools/rrs_distros.py
+++ b/rrs/tools/rrs_distros.py
@@ -36,6 +36,11 @@ update_repo(settings.LAYER_FETCH_DIR, 'poky', settings.POKY_REPO_URL,
bitbakepath = os.path.join(fetchdir, 'bitbake')
sys.path.insert(0, os.path.join(bitbakepath, 'lib'))
+# setup poky path
+pokypath = os.path.join(fetchdir, 'poky')
+sys.path.insert(0, os.path.join(pokypath, 'meta', 'lib'))
+
+
from layerindex.models import Recipe, LayerBranch
from rrs.models import RecipeDistro
diff --git a/rrs/tools/rrs_upstream_history.py b/rrs/tools/rrs_upstream_history.py
index 72225b2cf9..df71fd38e3 100755
--- a/rrs/tools/rrs_upstream_history.py
+++ b/rrs/tools/rrs_upstream_history.py
@@ -36,6 +36,10 @@ update_repo(settings.LAYER_FETCH_DIR, 'poky', settings.POKY_REPO_URL,
bitbakepath = os.path.join(fetchdir, 'bitbake')
sys.path.insert(0, os.path.join(bitbakepath, 'lib'))
+# setup poky path
+pokypath = os.path.join(fetchdir, 'poky')
+sys.path.insert(0, os.path.join(pokypath, 'meta', 'lib'))
+
from layerindex.models import Recipe, LayerBranch
from rrs.models import RecipeUpstream, RecipeUpstreamHistory