mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[packages] Add pisi package manager (based on some guesses)
This commit is contained in:
parent
533031b3ca
commit
051edb462f
1 changed files with 13 additions and 0 deletions
|
@ -296,6 +296,19 @@ class PMDummy(PackageManager):
|
|||
libcalamares.utils.debug("Running script '" + str(script) + "'")
|
||||
|
||||
|
||||
class PMPisi(PackageManager):
|
||||
backend = "pisi"
|
||||
|
||||
def install(self, pkgs, from_local=False):
|
||||
check_target_env_call(["pisi", "install" "-y"] + pkgs)
|
||||
|
||||
def remove(self, pkgs):
|
||||
check_target_env_call(["pisi", "remove", "-y"] + pkgs)
|
||||
|
||||
def update_db(self):
|
||||
check_target_env_call(["pisi", "update-repo"])
|
||||
|
||||
|
||||
# Collect all the subclasses of PackageManager defined above,
|
||||
# and index them based on the backend property of each class.
|
||||
backend_managers = [
|
||||
|
|
Loading…
Add table
Reference in a new issue