build/windows: Fix faultingmsg_list check to fail on empty inno_code

This commit is contained in:
Bruno Lopes 2026-03-05 13:49:52 -03:00
parent 7e63e661f0
commit a69aa99db9

View file

@ -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} "