ptest.bbclass: Use d.getVar instead of os.environ
PATCH 1/1 ptest.bbclass: Use d.getVar instead of os.environ
In reply to a message not in the archive[YOCTO #12597]
[YOCTO #13238]
Signed-off-by Mariano Lopez <[email protected]>
--- meta/classes/ptest.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/ptest.bbclass +2 -2
@@ -84,8 +84,8 @@ python ptest_update_alternatives() { return bb.note("Generating symlinks for ptest") - bin_paths = { os.environ["bindir"], os.environ["base_bindir"], - os.environ["sbindir"], os.environ["base_sbindir"] } + bin_paths = { d.getVar("bindir"), d.getVar("base_bindir"), + d.getVar("sbindir"), d.getVar("base_sbindir") } ptest_bindir = d.getVar("PTEST_BINDIR_PKGD_PATH") os.mkdir(ptest_bindir) for pkg in (d.getVar('PACKAGES') or "").split():
Signature · 1 line
2.19.2