]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
insane: optimise test in package_qa_check_shebang_size
authorRoss Burton <ross.burton@arm.com>
Thu, 10 Oct 2024 16:06:21 +0000 (17:06 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Oct 2024 11:16:59 +0000 (12:16 +0100)
commit38454a2675f38c7db55efcb67bbb8b9fef7e0bf1
tree220a3977694542635db4ceaacf35e16054eea22b
parent79ffb8896d570dd935d3aea9d28ee20b52e1674a
insane: optimise test in package_qa_check_shebang_size

Check whether the elf is not None first, before doing os.stat() calls
on disk. Also don't check anything that isn't a file, not just FIFOs.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/insane.bbclass