add pamac support

This commit is contained in:
Vitor Lopes 2020-06-21 17:24:29 +01:00 committed by GitHub
parent ccff4edd91
commit f8db15adc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,6 +309,24 @@ class PMPacman(PackageManager):
def update_system(self):
check_target_env_call(["pacman", "-Su", "--noconfirm"])
class PMPamac(PackageManager):
backend = "pamac"
def install(self, pkgs, from_local=False):
pamac_flags = "install"
check_target_env_call([backend, pamac_flags + pkgs)
def remove(self, pkgs):
check_target_env_call([backend, "remove"] + pkgs)
def update_db(self):
check_target_env_call([backend, "update"])
def update_system(self):
check_target_env_call([backend, "upgrade"])
class PMPortage(PackageManager):