mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 02:45:44 -05:00
[packages] add xbps package manager
This commit is contained in:
parent
6c40d69574
commit
f034b55da2
1 changed files with 14 additions and 0 deletions
|
@ -274,6 +274,20 @@ class PMApt(PackageManager):
|
||||||
# Doesn't need to update the system explicitly
|
# Doesn't need to update the system explicitly
|
||||||
pass
|
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):
|
class PMPacman(PackageManager):
|
||||||
backend = "pacman"
|
backend = "pacman"
|
||||||
|
|
Loading…
Add table
Reference in a new issue