]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: import subprocess in correct function
authorJussi Kukkonen <jussi.kukkonen@intel.com>
Wed, 20 May 2015 19:11:06 +0000 (22:11 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 May 2015 09:48:48 +0000 (10:48 +0100)
check_sanity() no longer needs the subprocess module but
sanity_handle_abichanges() does use subprocess.call().

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/sanity.bbclass

index e7381107adb10cbeeb477493256d0893ba9605d9..32e9b82ff3f842e670ec3b28b88e460bfe817c9d 100644 (file)
@@ -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 = ""