Merge pull request #1431 from pinpox/master

Add xbps package manager
This commit is contained in:
Adriaan de Groot 2020-06-11 11:59:12 +02:00 committed by GitHub
commit 2673d2fc35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,6 +274,20 @@ class PMApt(PackageManager):
# Doesn't need to update the system explicitly
pass
class PMXbps(PackageManager):
backend = "xbps"
def install(self, pkgs, from_local=False):
check_target_env_call(["xbps-install", "-Sy"] + pkgs)
def remove(self, pkgs):
check_target_env_call(["xbps-remove", "-Ry", "--noconfirm"] + pkgs)
def update_db(self):
check_target_env_call(["xbps-install", "-S"])
def update_system(self):
check_target_env_call(["xbps", "-Suy"])
class PMPacman(PackageManager):
backend = "pacman"