erplibre/script/version
Mathieu Benoit 7e89fa354f [FIX] install: propager l'échec au code de sortie (faux du suivi corrigé)
update_env_version.py (cible « make install_odoo_XX ») calculait un statut
mais ne faisait JAMAIS sys.exit() et IGNORAIT le retour de
update_environment() (l'install réelle : venv/poetry). Résultat : même
quand install_locally.sh échouait (ex. poetry status 127), le script
sortait 0 -> make 0 -> remote « && » continuait (service créé) ->
__ERPLIBRE_EXIT__ 0 -> le suivi d'installation affichait  à tort.

- main() suit un exit_code : install_system() ou update_environment()
  renvoyant une valeur non nulle (os.system : 0 = succès) -> exit_code=1.
- sys.exit(main() or 0) propage réellement l'échec.
- Étapes post-install (pycharm, git_repo_update, generate_config) exécutées
  seulement si l'install a réussi (sinon .venv.erplibre absent -> cascade
  d'erreurs).

Chaîne désormais complète : install_locally.sh exit 1 -> install_locally_
dev.sh exit 1 -> os.system != 0 -> install_erplibre != 0 ->
update_environment != 0 -> main exit_code=1 -> sys.exit(1) -> make échoue
-> remote && stoppe -> __ERPLIBRE_EXIT__ != 0 -> dashboard .

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-30 03:49:56 +00:00
..
change_python_version.sh [IMP] refactoring .venv.erplibre 2025-10-31 01:34:26 -04:00
erplibre_state.py [ADD] installation: add optional extra modules (CybroOdoo) 2026-05-19 15:17:45 -04:00
get_version.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
update_env_version.py [FIX] install: propager l'échec au code de sortie (faux du suivi corrigé) 2026-07-30 03:49:56 +00:00