diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-07 13:56:05 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 14:04:19 +0100 |
commit | e2e1dcd74bc45381baccf507c0309dd792229afe (patch) | |
tree | 71bca48bffd9feacc6bd8e2beb9c5a625ee1b297 /meta/classes/kernel-yocto.bbclass | |
parent | 4f47b3a4726dd47e8a6db228fcaf25d1890e3e52 (diff) | |
download | openembedded-core-e2e1dcd74bc45381baccf507c0309dd792229afe.tar.gz openembedded-core-e2e1dcd74bc45381baccf507c0309dd792229afe.tar.bz2 openembedded-core-e2e1dcd74bc45381baccf507c0309dd792229afe.zip |
sanity/patch.py: Remove commands module usage
The commands module is removed in python3. Use the subprocess module instead
and the pipes module to replace the mkargs usage.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index d1b4f10254..c81e70e678 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass @@ -254,7 +254,7 @@ do_kernel_configme() { } python do_kernel_configcheck() { - import re, string, sys, commands + import re, string, sys, subprocess 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 = commands.getstatusoutput("%s%s" % (pathprefix, cmd)) + ret, result = subprocess.getstatusoutput("%s%s" % (pathprefix, cmd)) config_check_visibility = d.getVar( "KCONF_AUDIT_LEVEL", True ) or 1 if config_check_visibility == 1: |