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