feat(pkgcheck): vérification des mises à jour au démarrage sans mdp + notif
Le mode headless --check-updates (QT Core uniquement) synchro checkupdates sans root, classe les paquets critiques (noyau, glibc, systemd, graphics), envoie une notif urgente via notify-send quand c'est nécessaire, et installe soi-même son service systemd --user (paramètre actif par défaut) pour lancer la vérification à chaque ouverture de session. Ajout de tests d'unité et de doc. Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
9 files changed
+819
-2
No files matched your search
+15
-2
@@ -31,6 +31,8 @@ set(SOURCES
|
||||
src/history-manager.cpp
|
||||
src/package-model.cpp
|
||||
src/update-manager.cpp
|
||||
# Headless pass run at login by the systemd unit the app installs itself.
|
||||
src/startup-check.cpp
|
||||
src/app-logging.cpp
|
||||
# Logic layer: background workers, the plugin shop and the controller the
|
||||
# screens delegate to.
|
||||
@@ -59,6 +61,7 @@ set(HEADERS
|
||||
include/history-manager.h
|
||||
include/package-model.h
|
||||
include/update-manager.h
|
||||
include/startup-check.h
|
||||
include/app-logging.h
|
||||
include/workers.h
|
||||
include/progress-tracker.h
|
||||
@@ -188,10 +191,10 @@ add_test(NAME aur-manager-test COMMAND aur-manager-test)
|
||||
add_executable(app-core-test tests/app-core.test.cpp
|
||||
src/app-core.cpp src/workers.cpp src/pacman-manager.cpp
|
||||
src/plugin-manager.cpp src/history-manager.cpp src/update-manager.cpp
|
||||
src/plugin-shop.cpp
|
||||
src/plugin-shop.cpp src/startup-check.cpp
|
||||
src/app-logging.cpp src/log-manager.cpp
|
||||
include/app-core.h include/workers.h include/update-manager.h
|
||||
include/plugin-shop.h include/log-manager.h)
|
||||
include/startup-check.h include/plugin-shop.h include/log-manager.h)
|
||||
target_include_directories(app-core-test PRIVATE include)
|
||||
target_link_libraries(app-core-test PRIVATE Qt6::Core Qt6::Network)
|
||||
target_compile_definitions(app-core-test PRIVATE
|
||||
@@ -206,6 +209,16 @@ target_compile_definitions(update-manager-test PRIVATE
|
||||
FWSPACMANAGE_VERSION="${PACMANAGER_VERSION}")
|
||||
add_test(NAME update-manager-test COMMAND update-manager-test)
|
||||
|
||||
# StartupCheck: the pure half (parsing, critical/reboot classification,
|
||||
# notification text) and the autostart files, driven inside a temporary tree so
|
||||
# the user's own ~/.config is never touched.
|
||||
add_executable(startup-check-test tests/startup-check.test.cpp
|
||||
src/startup-check.cpp src/log-manager.cpp src/app-logging.cpp
|
||||
include/startup-check.h include/log-manager.h)
|
||||
target_include_directories(startup-check-test PRIVATE include)
|
||||
target_link_libraries(startup-check-test PRIVATE Qt6::Core)
|
||||
add_test(NAME startup-check-test COMMAND startup-check-test)
|
||||
|
||||
# ---- Plugins ----
|
||||
#
|
||||
# Flatpak ships as an external provider plugin (not compiled into the binary):
|
||||
|
||||
Reference in new issue
Block a user