build: check the installer translations before building
This commit is contained in:
1 file changed
+10
@@ -199,6 +199,16 @@ fi
|
|||||||
WORK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
WORK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
echo "==> Dossier de travail : $WORK_DIR"
|
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
|
# pacman ≥ 7 sandboxe les ops FS via landlock, non supporté par le kernel
|
||||||
# WSL ni (selon le noyau) par le conteneur → désactivation. Idempotent,
|
# WSL ni (selon le noyau) par le conteneur → désactivation. Idempotent,
|
||||||
# sans effet sur Arch natif.
|
# sans effet sur Arch natif.
|
||||||
|
|||||||
Reference in new issue
Block a user