mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
classes/lib: Fix getcmdstatus breakage
I mistakenly thought subprocess had getcmdstatus in python 2. It doesn't so lets add a wrapper and have this work in both worlds. (From OE-Core rev: 2253e9f12734c6e6aa489942b5e4628eca1fa29d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -254,7 +254,7 @@ do_kernel_configme() {
|
||||
}
|
||||
|
||||
python do_kernel_configcheck() {
|
||||
import re, string, sys, subprocess
|
||||
import re, string, sys
|
||||
|
||||
bb.plain("NOTE: validating kernel config, see log.do_kernel_configcheck for details")
|
||||
|
||||
@@ -265,7 +265,7 @@ python do_kernel_configcheck() {
|
||||
|
||||
pathprefix = "export PATH=%s:%s; " % (d.getVar('PATH', True), "${S}/scripts/util/")
|
||||
cmd = d.expand("cd ${S}; kconf_check -config- %s/meta-series ${S} ${B}" % kmeta)
|
||||
ret, result = subprocess.getstatusoutput("%s%s" % (pathprefix, cmd))
|
||||
ret, result = oe.utils.getstatusoutput("%s%s" % (pathprefix, cmd))
|
||||
|
||||
config_check_visibility = d.getVar( "KCONF_AUDIT_LEVEL", True ) or 1
|
||||
if config_check_visibility == 1:
|
||||
|
||||
Reference in New Issue
Block a user