diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-08-22 21:56:30 +0000 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-05-04 23:57:52 +1200 |
commit | 510dec2ee8b84cd362c1290c51f2a404b8e88706 (patch) | |
tree | ae8b99ca7fef0151d2124c6d05052fed7235ba40 | |
parent | 4c2e9ec1f90f97db403e572596051736919ade8e (diff) | |
download | openembedded-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-x | rrs/tools/rrs_distros.py | 5 | ||||
-rwxr-xr-x | rrs/tools/rrs_upstream_history.py | 4 |
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 |