fix: try to fix error on update on computer switch off

This commit is contained in:
2026-05-19 08:11:28 +02:00
parent 4ba70cefc6
commit 8d0d9835be
7 changed files with 161 additions and 20 deletions

View File

@ -13,7 +13,7 @@ import time
from datetime import datetime
import state as state_mod
from package_manager import install_packages, is_pacman_locked
from package_manager import upgrade_cached_packages, is_pacman_locked
logging.basicConfig(
level=logging.INFO,
@ -209,7 +209,7 @@ def run():
try:
display.update(f"Installation de {len(names)} paquet(s)…")
result = install_packages(names)
result = upgrade_cached_packages(names)
except Exception as e:
logger.exception(f"Erreur inattendue : {e}")