build: check the installer translations before building

This commit is contained in:
nocode committed 2026-11-26 14:00:06 +01:00
1 parent 2a2890302c
commit 2a71f0e640
1 file changed
+10
+10
View File
@@ -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.