The new contains code can't inspect variable references in handle_error()
calls. Expand what is effectively a hardcoded reference anyway so the code
can optimise it.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
if not skip_shebang_size:
errors = {}
package_qa_check_shebang_size(path, "", d, None, errors)
- for e in errors:
- oe.qa.handle_error(e, errors[e], d)
-
+ if "shebang-size" in errors:
+ oe.qa.handle_error("shebang-size", errors["shebang-size"], d)
# Run all package-wide warnfuncs and errorfuncs
def package_qa_package(warnfuncs, errorfuncs, package, d):