mirror of
https://github.com/kiviktnm/decman.git
synced 2026-09-19 12:08:28 +00:00
decman.modules should be a list
This commit is contained in:
@@ -46,7 +46,7 @@ class Flatpak(plugins.Plugin):
|
||||
def available(self) -> bool:
|
||||
return shutil.which("flatpak") is not None
|
||||
|
||||
def process_modules(self, store: _store.Store, modules: set[module.Module]):
|
||||
def process_modules(self, store: _store.Store, modules: list[module.Module]):
|
||||
# These store keys are used to track changes in modules.
|
||||
# This way when these change, module can be marked as changed
|
||||
store.ensure("flatpaks_for_module", {})
|
||||
|
||||
@@ -90,7 +90,7 @@ class AUR(plugins.Plugin):
|
||||
and shutil.which("mkarchroot") is not None
|
||||
)
|
||||
|
||||
def process_modules(self, store: _store.Store, modules: set[module.Module]):
|
||||
def process_modules(self, store: _store.Store, modules: list[module.Module]):
|
||||
# This is used to track changes in modules.
|
||||
store.ensure("aur_packages_for_module", {})
|
||||
store.ensure("custom_packages_for_module", {})
|
||||
|
||||
@@ -58,7 +58,7 @@ class Pacman(plugins.Plugin):
|
||||
def available(self) -> bool:
|
||||
return shutil.which("pacman") is not None
|
||||
|
||||
def process_modules(self, store: _store.Store, modules: set[module.Module]):
|
||||
def process_modules(self, store: _store.Store, modules: list[module.Module]):
|
||||
# This is used to track changes in modules.
|
||||
store.ensure("packages_for_module", {})
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ class Systemd(plugins.Plugin):
|
||||
def available(self) -> bool:
|
||||
return shutil.which("systemctl") is not None
|
||||
|
||||
def process_modules(self, store: _store.Store, modules: set[module.Module]):
|
||||
def process_modules(self, store: _store.Store, modules: list[module.Module]):
|
||||
# These store keys are used to track changes in modules.
|
||||
# This way when these change, module can be marked as changed
|
||||
store.ensure("systemd_units_for_module", {})
|
||||
|
||||
Reference in New Issue
Block a user