Skip to content

Commit 3c2d2a6

Browse files
committed
doc: _scripts: boards: fix for boards without revisions
Commit 38b8790 introduced a pretty bad regression for boards without revisions. Fix by correctly checking for actually undefined revisions Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 729f50e commit 3c2d2a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/_scripts/gen_boards_catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def gather_board_build_info(twister_out_dir):
163163
revision = board_info.get('revision', '')
164164

165165
board_target = board_name
166-
if revision is not None:
166+
if revision != '':
167167
board_target = f"{board_target}@{revision}"
168168
if qualifier:
169169
board_target = f"{board_target}/{qualifier}"

0 commit comments

Comments
 (0)