]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
wic: bootimg-efi: fix error handling
authorEnrico Jörns <ejo@pengutronix.de>
Tue, 4 Jun 2024 08:06:21 +0000 (10:06 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Jun 2024 10:53:22 +0000 (11:53 +0100)
commitf31cf475d0235f42d73aeec07694f79b9937fd76
treed6257441f16fac442b03f07d8ad0a4016b2ba3c6
parente33d7241f6c2897e930aff41e18b154891197ab9
wic: bootimg-efi: fix error handling

If we check for empty variables, it does not make sense to print their
content in case they are empty.

Additionally, the error message in the 'kernel' check attempted to print
the wrong variable ('target') which was not even defined, yet.

Also, raising WicError doesn't require an extra newline.

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/plugins/source/bootimg-efi.py