feat: release v2.0.0 with tab completion, package filtering, db health checks, flatpak and logrotate
Build and Publish Release / Build Packages and Publish (push) Successful in 27s

This commit is contained in:
soda64 committed 2026-10-03 08:31:00 +02:00
1 parent 8d4157b42d
commit 8bec4ed932
27 files changed
+1053 -69

No files matched your search

+13 -1
View File
@@ -1,6 +1,6 @@
import json
from pathlib import Path
from typing import Optional, Dict, Any
from typing import Optional, Dict, Any, List
class UpdaterConfig:
@@ -15,6 +15,9 @@ class UpdaterConfig:
check_ac_power: bool = True,
clean_after_update: bool = False,
auto_reboot: bool = False,
exclude_packages: Optional[List[str]] = None,
security_only: bool = False,
update_flatpak: bool = False,
log_dir: Optional[str] = "/var/log/linux-updater",
log_file: Optional[str] = None,
verbose: bool = False,
@@ -28,6 +31,9 @@ class UpdaterConfig:
self.check_ac_power = check_ac_power
self.clean_after_update = clean_after_update
self.auto_reboot = auto_reboot
self.exclude_packages = exclude_packages or []
self.security_only = security_only
self.update_flatpak = update_flatpak
self.log_dir = log_dir
self.log_file = log_file
self.verbose = verbose
@@ -60,6 +66,9 @@ class UpdaterConfig:
check_ac_power=behavior.get("check_ac_power", True),
clean_after_update=behavior.get("clean_after_update", False),
auto_reboot=behavior.get("auto_reboot", False),
exclude_packages=behavior.get("exclude_packages", []),
security_only=behavior.get("security_only", False),
update_flatpak=behavior.get("update_flatpak", False),
log_dir=logging.get("log_dir", "/var/log/linux-updater"),
log_file=logging.get("log_file", None),
verbose=logging.get("verbose", False),
@@ -79,6 +88,9 @@ class UpdaterConfig:
"check_ac_power": self.check_ac_power,
"clean_after_update": self.clean_after_update,
"auto_reboot": self.auto_reboot,
"exclude_packages": self.exclude_packages,
"security_only": self.security_only,
"update_flatpak": self.update_flatpak,
},
"logging": {
"log_dir": self.log_dir,