On Tue, 2026-10-27 at 10:12 +0200, Maxin John wrote:
> The message was an f-string without placeholders combined with
> '%'-formatting. Use a single f-string referencing the kernel variable.
> 
> Signed-off-by: Maxin John <[email protected]>
> ---
>  meta/classes-recipe/uki.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes-recipe/uki.bbclass b/meta/classes-recipe/uki.bbclass
> index 566eab1eaa..cfb930e93d 100644
> --- a/meta/classes-recipe/uki.bbclass
> +++ b/meta/classes-recipe/uki.bbclass
> @@ -138,7 +138,7 @@ python do_uki() {
>      if kernel_filename:
>          kernel = "%s/%s" % (deploy_dir_image, kernel_filename)
>          if not os.path.exists(kernel):
> -            bb.fatal(f"ERROR: cannot find %s" % (kernel))
> +            bb.fatal(f"ERROR: cannot find {kernel}")

Could we drop the f-string prefix instead? String formatting with '%' is
used more often here.

Best regards,

-- 
Paul Barker

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#248933): 
https://lists.openembedded.org/g/openembedded-core/message/248933
Mute This Topic: https://lists.openembedded.org/mt/121956374/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to