diff mbox series

[meta-swupdate,2/6] swupdate-common: Fix SWUPDATE_SIGN_TOOL

Message ID 20261104170443.3265957-3-colinmca242@gmail.com
State New
Headers show
Series Improve signing/encryption and add asymmetric encryption support | expand

Commit Message

Colin Pinnell McAllister Nov. 4, 2026, 5:04 p.m. UTC
If SWUPDATE_SIGN_TOOL is empty and None is returned, split() will error
out. Defaulting to an empty string will ensure that the bb.fatal further
down is reached.

Signed-off-by: Colin Pinnell McAllister <colinmca242@gmail.com>
---
 classes-recipe/swupdate-common.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/classes-recipe/swupdate-common.bbclass b/classes-recipe/swupdate-common.bbclass
index 99ee9b7..6462257 100644
--- a/classes-recipe/swupdate-common.bbclass
+++ b/classes-recipe/swupdate-common.bbclass
@@ -198,7 +198,7 @@  def prepare_sw_description(d):
             d.setVar('SWUPDATE_SIGN_INPUT', swupdate_sign_input)
             d.setVar('SWUPDATE_SIGN_OUTPUT', swupdate_sign_output)
             signcmd = []
-            sign_tool = d.getVar('SWUPDATE_SIGN_TOOL')
+            sign_tool = d.getVar('SWUPDATE_SIGN_TOOL') or ""
             signtool = sign_tool.split()
             for i in range(len(signtool)):
                 signcmd.append(signtool[i])