From a69aa99db94e0d55a4cc49b1405c9e9ab171a0de Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Thu, 5 Mar 2026 13:49:52 -0300 Subject: [PATCH] build/windows: Fix faultingmsg_list check to fail on empty inno_code --- build/windows/installer/lang/list-installer-langs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/windows/installer/lang/list-installer-langs.py b/build/windows/installer/lang/list-installer-langs.py index 245fda7dfb..6d5f7f82df 100644 --- a/build/windows/installer/lang/list-installer-langs.py +++ b/build/windows/installer/lang/list-installer-langs.py @@ -6,8 +6,8 @@ import sys import xml.etree.ElementTree as ET from pathlib import Path -MESON_BUILD_ROOT = Path(os.environ.get("MESON_BUILD_ROOT",".")).as_posix() -MESON_SOURCE_ROOT = Path(os.environ.get("MESON_SOURCE_ROOT",sys.argv[2])).as_posix() +MESON_BUILD_ROOT = Path(os.environ.get("MESON_BUILD_ROOT",".")).as_posix() +MESON_SOURCE_ROOT = Path(os.environ.get("MESON_SOURCE_ROOT",sys.argv[2])).as_posix() ## Get list of Inno and GIMP supported languages po_inno_files = sorted(glob.glob(os.path.join(MESON_SOURCE_ROOT,'po-windows-installer/*.po'))) @@ -40,7 +40,7 @@ if sys.argv[1] == 'msg': inno_code = entry.get('inno_code').replace('\\\\', '\\') break # Check if everything is alright - if inno_code is None: + if not inno_code: faultingmsg_list = faultingmsg_list + f"{po} " if po not in meson_set: faultingmeson_list = faultingmeson_list + f"{po} "