diff mbox series

[scarthgap,1/5] sign_ipk.bbclass: add missing 'd' parameter to raise_sanity_error()

Message ID 20260602142132.976138-1-rl@karo-electronics.de
State New
Headers show
Series [scarthgap,1/5] sign_ipk.bbclass: add missing 'd' parameter to raise_sanity_error() | expand

Commit Message

Robin Lintermann June 2, 2026, 2:21 p.m. UTC
The second raise_sanity_error() call in this class lacks the 'd'
parameter which would lead to a python exception rather than the
desired error message when the corresponding error condition is
fulfilled.

Signed-off-by: Robin Lintermann <rl@karo-electronics.de>
---
 meta/classes/sign_ipk.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/classes/sign_ipk.bbclass b/meta/classes/sign_ipk.bbclass
index 51c24b38b2..9f666998ba 100644
--- a/meta/classes/sign_ipk.bbclass
+++ b/meta/classes/sign_ipk.bbclass
@@ -40,7 +40,7 @@  python () {
 
     sigtype = d.getVar("IPK_GPG_SIGNATURE_TYPE")
     if sigtype.upper() != "ASC" and sigtype.upper() != "BIN":
-        raise_sanity_error("Bad value for IPK_GPG_SIGNATURE_TYPE (%s), use either ASC or BIN" % sigtype)
+        raise_sanity_error("Bad value for IPK_GPG_SIGNATURE_TYPE (%s), use either ASC or BIN" % sigtype, d)
 }
 
 def sign_ipk(d, ipk_to_sign):