[poky] [PATCH 1/1] qa.py: Fix a typo when evaluating bitsize
Mark Hatle
mark.hatle at windriver.com
Thu Mar 3 09:02:43 PST 2011
This should be setting a variable, not performing a comparison.
Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
---
meta/lib/oe/qa.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oe/qa.py b/meta/lib/oe/qa.py
index 7adf4d0..d380012 100644
--- a/meta/lib/oe/qa.py
+++ b/meta/lib/oe/qa.py
@@ -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.")
--
1.7.4
More information about the poky
mailing list