summaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-02-24 13:31:40 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-28 11:32:59 +0000
commit4495e8bae03a96d5ae55e588309fa2cdf7e9f4a5 (patch)
tree7333d34d0f423209064a796d38ad161510d60075 /meta/classes/insane.bbclass
parent4553bb1b882736b2fc582836c387661f7239a9c3 (diff)
downloadpoky-4495e8bae03a96d5ae55e588309fa2cdf7e9f4a5.tar.gz
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>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass3
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):
792 elf = oe.qa.ELFFile(path) 792 elf = oe.qa.ELFFile(path)
793 try: 793 try:
794 elf.open() 794 elf.open()
795 except (IOError, ValueError): 795 except (IOError, oe.qa.NotELFFileError):
796 # IOError can happen if the packaging control files disappear, 796 # IOError can happen if the packaging control files disappear,
797 # ValueError means the file isn't an ELF.
798 elf = None 797 elf = None
799 for func in warnfuncs: 798 for func in warnfuncs:
800 func(path, package, d, elf, warnings) 799 func(path, package, d, elf, warnings)