diff options
author | Ross Burton <ross.burton@intel.com> | 2016-02-24 13:31:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-28 11:32:35 +0000 |
commit | 4c1fe0cbcb98b0a69ad5b3a04432055d773ee4ba (patch) | |
tree | 03730b4965db04fc933ee6072d2c0f05bc4d32e1 /meta/classes/insane.bbclass | |
parent | 6e779962f3846cbe5a5cb205f66b9bd9404f6d57 (diff) | |
download | openembedded-core-4c1fe0cbcb98b0a69ad5b3a04432055d773ee4ba.tar.gz openembedded-core-4c1fe0cbcb98b0a69ad5b3a04432055d773ee4ba.tar.bz2 openembedded-core-4c1fe0cbcb98b0a69ad5b3a04432055d773ee4ba.zip |
lib/oe/qa: add explicit exception for 'file isn't an ELF'
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 61936e1377..b9adea77c8 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -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) |