diff --git a/src/modules/packages/main.py b/src/modules/packages/main.py index 26ed30a19..063f45b58 100644 --- a/src/modules/packages/main.py +++ b/src/modules/packages/main.py @@ -337,6 +337,22 @@ class PMEntropy(PackageManager): # Doesn't need to update the system explicitly pass +class PMFlatpak(PackageManager): + backend = "flatpak" + + def install(self, pkgs, from_local=False): + check_target_env_call(["flatpak", "install"] + pkgs) + + def remove(self, pkgs): + check_target_env_call(["flatpak", "uninstall"] + pkgs) + check_target_env_call(["flatpak", "uninstall", "--unneeded"]) + + def update_db(self): + pass + + def update_system(self): + # Doesn't need to update the system explicitly + pass class PMLuet(PackageManager): backend = "luet"