ukify: Fix broken assert when building a signed addon

An assert always expected a kernel when signature key was present in command
line. That prevented building signed addons.

Fixes #35041
This commit is contained in:
Valentin David
2024-11-10 05:44:30 +09:00
committed by Yu Watanabe
parent 5cfe76e1d6
commit 053452e22b
+1 -2
View File
@@ -995,8 +995,7 @@ def make_uki(opts: UkifyConfig) -> None:
sign_kernel = opts.sign_kernel
linux = opts.linux
if sign_args_present:
assert opts.linux is not None
if opts.linux and sign_args_present:
assert opts.signtool is not None
if not sign_kernel: