[OE-core] [PATCH 1/1] ptest.bbclass: Use d.getVar instead of os.environ
Mariano Lopez
just.another.mariano at gmail.com
Sat Apr 13 16:05:08 UTC 2019
[YOCTO #12597]
[YOCTO #13238]
Signed-off-by: Mariano Lopez <just.another.mariano at gmail.com>
---
meta/classes/ptest.bbclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index e87a9659cb..936bf82736 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -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():
--
2.19.2
More information about the Openembedded-core
mailing list