mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
lib/qa.py: raise ValueError if file isn't an ELF
Instead of raising a generic Exception that can't be handled specifically, raise a ValueError. Also update the callers so any unexpected exceptions are not ignored. Also, rename isBigEngian() to isBigEndian(). (From OE-Core rev: c136652f9c0b35aafa393e63567daf029ae03929) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
334e1b5e0e
commit
7a700f59d9
@@ -80,7 +80,7 @@ python uninative_changeinterp () {
|
||||
elf = oe.qa.ELFFile(f)
|
||||
try:
|
||||
elf.open()
|
||||
except:
|
||||
except ValueError:
|
||||
continue
|
||||
|
||||
#bb.warn("patchelf-uninative --set-interpreter %s %s" % (d.getVar("UNINATIVE_LOADER", True), f))
|
||||
|
||||
Reference in New Issue
Block a user