From 38b87905ba2c72cd41ecad615974eac6009a7a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Tue, 25 Mar 2025 17:33:43 +0100 Subject: [PATCH] doc: _scripts: boards: fix condition for revision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revision might be `0` so update the condition to not inadvertently exclude boards with such revision number. Signed-off-by: Benjamin Cabé --- doc/_scripts/gen_boards_catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/_scripts/gen_boards_catalog.py b/doc/_scripts/gen_boards_catalog.py index 2524f2caeca..fdce5f0777f 100755 --- a/doc/_scripts/gen_boards_catalog.py +++ b/doc/_scripts/gen_boards_catalog.py @@ -138,7 +138,7 @@ def gather_board_devicetrees(twister_out_dir): revision = board_info.get('revision', '') board_target = board_name - if revision: + if revision is not None: board_target = f"{board_target}@{revision}" if qualifier: board_target = f"{board_target}/{qualifier}"