]> code.ossystems Code Review - openembedded-core.git/commitdiff
qa.py: Fix a typo when evaluating bitsize
authorMark Hatle <mark.hatle@windriver.com>
Thu, 3 Mar 2011 16:37:05 +0000 (10:37 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Mar 2011 23:29:19 +0000 (23:29 +0000)
This should be setting a variable, not performing a comparison.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/lib/oe/qa.py

index 7adf4d03aeca98c9d6564755ecbb556f05a3c211..d3800128ed7e42f48fd9a8cb0f1f212b1b0cacae 100644 (file)
@@ -40,9 +40,9 @@ class ELFFile:
         self.my_assert(self.data[3], 'F')
         if self.bits == 0:
             if self.data[ELFFile.EI_CLASS] == chr(ELFFile.ELFCLASS32):
-                self.bits == 32
+                self.bits = 32
             elif self.data[ELFFile.EI_CLASS] == chr(ELFFile.ELFCLASS64):
-                self.bits == 64
+                self.bits = 64
             else:
                 # Not 32-bit or 64.. lets assert
                 raise Exception("ELF but not 32 or 64 bit.")