Merge pull request #2176 from nintyfan/WIP/Packaging-Flatpak-2

Wip/packaging flatpak 2
This commit is contained in:
dalto8 2023-08-12 15:00:12 +00:00 committed by GitHub
commit 3bec262d2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,6 +337,21 @@ 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", "--assumeyes"] + pkgs)
def remove(self, pkgs):
check_target_env_call(["flatpak", "uninstall", "--noninteractive"] + pkgs)
def update_db(self):
pass
def update_system(self):
# Doesn't need to update the system explicitly
pass
class PMLuet(PackageManager):
backend = "luet"