From 2a71f0e640f835785ec4d05058f363e88d23acca Mon Sep 17 00:00:00 2001 From: fkDead Date: Thu, 26 Nov 2026 14:00:06 +0100 Subject: [PATCH] build: check the installer translations before building --- build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.sh b/build.sh index 430b8ca..d3015be 100755 --- a/build.sh +++ b/build.sh @@ -199,6 +199,16 @@ fi WORK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" echo "==> Dossier de travail : $WORK_DIR" +# A broken translations file only shows once the ISO boots: check it now, +# before anything long. A bare Arch container may lack python3: skip then. +if command -v python3 >/dev/null 2>&1; then + echo "==> Vérification des traductions de l'installateur..." + python3 -I "$WORK_DIR/scripts/check-installer-translations.py" \ + || { echo -e "\e[31m[ERR] Traductions de l'installateur invalides (détail ci-dessus).\e[0m" >&2; exit 1; } +else + echo "==> python3 absent : vérification des traductions sautée." +fi + # pacman ≥ 7 sandboxe les ops FS via landlock, non supporté par le kernel # WSL ni (selon le noyau) par le conteneur → désactivation. Idempotent, # sans effet sur Arch natif.