|
@@ -708,12 +708,13 @@ def package_qa_walk(warnfuncs, errorfuncs, package, d):
|
|
|
warnings = {}
|
|
|
errors = {}
|
|
|
for path in pkgfiles[package]:
|
|
|
- elf = oe.qa.ELFFile(path)
|
|
|
- try:
|
|
|
- elf.open()
|
|
|
- except (IOError, oe.qa.NotELFFileError):
|
|
|
- # IOError can happen if the packaging control files disappear,
|
|
|
- elf = None
|
|
|
+ elf = None
|
|
|
+ if os.path.isfile(path):
|
|
|
+ elf = oe.qa.ELFFile(path)
|
|
|
+ try:
|
|
|
+ elf.open()
|
|
|
+ except oe.qa.NotELFFileError:
|
|
|
+ elf = None
|
|
|
for func in warnfuncs:
|
|
|
func(path, package, d, elf, warnings)
|
|
|
for func in errorfuncs:
|