summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/insane.bbclass13
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index d7f8f919c3..c38720afdb 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -709,12 +709,13 @@ def package_qa_walk(warnfuncs, errorfuncs, package, d):
709 warnings = {} 709 warnings = {}
710 errors = {} 710 errors = {}
711 for path in pkgfiles[package]: 711 for path in pkgfiles[package]:
712 elf = oe.qa.ELFFile(path) 712 elf = None
713 try: 713 if os.path.isfile(path):
714 elf.open() 714 elf = oe.qa.ELFFile(path)
715 except (IOError, oe.qa.NotELFFileError): 715 try:
716 # IOError can happen if the packaging control files disappear, 716 elf.open()
717 elf = None 717 except oe.qa.NotELFFileError:
718 elf = None
718 for func in warnfuncs: 719 for func in warnfuncs:
719 func(path, package, d, elf, warnings) 720 func(path, package, d, elf, warnings)
720 for func in errorfuncs: 721 for func in errorfuncs: