1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 00:59:48 +00:00

lib/oe/qa: add explicit exception for 'file isn't an ELF'

(From OE-Core rev: 4c1fe0cbcb98b0a69ad5b3a04432055d773ee4ba)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2016-02-24 13:31:40 +00:00
committed by Richard Purdie
parent 4553bb1b88
commit 4495e8bae0
3 changed files with 11 additions and 9 deletions
+1 -2
View File
@@ -792,9 +792,8 @@ def package_qa_walk(warnfuncs, errorfuncs, skip, package, d):
elf = oe.qa.ELFFile(path)
try:
elf.open()
except (IOError, ValueError):
except (IOError, oe.qa.NotELFFileError):
# IOError can happen if the packaging control files disappear,
# ValueError means the file isn't an ELF.
elf = None
for func in warnfuncs:
func(path, package, d, elf, warnings)