refactor: set default aur helper to constant

This commit is contained in:
2 * r + 2 * t
2026-06-14 21:22:58 +10:00
parent 36a6029a2c
commit 44df61b22d
3 changed files with 11 additions and 8 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import json
from dataclasses import dataclass, field
from caelestia.utils.dots.packages import DEFAULT_AUR_HELPER
from caelestia.utils.io import warn
from caelestia.utils.paths import atomic_dump, dots_state_path
@@ -31,7 +32,7 @@ class DotsState:
return DotsState()
return DotsState(
aur_helper=data.get("aur_helper"),
aur_helper=data.get("aur_helper", DEFAULT_AUR_HELPER),
applied_rev=data.get("applied_rev"),
enabled_components=data.get("enabled_components", []),
packages=data.get("packages", []),