aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2015-05-20 22:11:06 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-28 09:41:56 +0100
commitf0bf36c669790f1bcb2f897e61c82b075cb0a83b (patch)
tree2ba5d21a4c860a14ce51fb934a0d9ae4d70a0b4a /meta
parent659cc47b142e0f14ace989d10277e4f83d7ffb75 (diff)
downloadopenembedded-core-f0bf36c669790f1bcb2f897e61c82b075cb0a83b.tar.gz
sanity.bbclass: import subprocess in correct function
check_sanity() no longer needs the subprocess module but sanity_handle_abichanges() does use subprocess.call(). (From OE-Core rev: 469b53fb3bb94c7e5e9fb53d07cec2292b13c87d) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index cca39c9b52..48f55396cb 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -491,6 +491,8 @@ def sanity_handle_abichanges(status, d):
#
# Check the 'ABI' of TMPDIR
#
+ import subprocess
+
current_abi = d.getVar('OELAYOUT_ABI', True)
abifile = d.getVar('SANITY_ABIFILE', True)
if os.path.exists(abifile):
@@ -824,8 +826,6 @@ def check_sanity_everybuild(status, d):
status.addresult("Error, IMAGE_FSTYPES vmdk and live can't be built together\n")
def check_sanity(sanity_data):
- import subprocess
-
class SanityStatus(object):
def __init__(self):
self.messages = ""