]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: Fix test for i686 SDKMACHINE
authorJoshua Lock <josh@linux.intel.com>
Mon, 14 Jun 2010 11:51:34 +0000 (12:51 +0100)
committerJoshua Lock <josh@linux.intel.com>
Mon, 14 Jun 2010 11:53:48 +0000 (12:53 +0100)
The 'is' keyword tests for object identity, returning True if the variables are
both referencing the same object. Changed the test to use the equality
operator, which compares the values of the objects.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/sanity.bbclass

index 02fa6435c042fecc40cf12a2d28f7016a26a3824..53a3cea9287ba5e8452fb88c3fef0b68959e6ef9 100644 (file)
@@ -140,7 +140,7 @@ def check_sanity(e):
        if not oes_bb_conf:
                messages = messages + 'You do not include OpenEmbeddeds version of conf/bitbake.conf. This means your environment is misconfigured, in particular check BBPATH.\n'
 
-       if data.getVar('SDKMACHINE', e.data, True) is 'i686':
+       if data.getVar('SDKMACHINE', e.data, True) == 'i686':
                messages = messages + '"Please set SDKMACHINE to i586 as its currently set to i686 and this is known to have issues (see local.conf).\n'
 
        #