Merge pull request #1680 from jcfrosty/patch-1
[packages] Add Luet PackageManager support
This commit is contained in:
commit
a3b84fa674
@ -255,6 +255,22 @@ class PMEntropy(PackageManager):
|
|||||||
# Doesn't need to update the system explicitly
|
# Doesn't need to update the system explicitly
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class PMLuet(PackageManager):
|
||||||
|
backend = "luet"
|
||||||
|
|
||||||
|
def install(self, pkgs, from_local=False):
|
||||||
|
check_target_env_call(["luet", "install", "-y"] + pkgs)
|
||||||
|
|
||||||
|
def remove(self, pkgs):
|
||||||
|
check_target_env_call(["luet", "uninstall", "-y"] + pkgs)
|
||||||
|
|
||||||
|
def update_db(self):
|
||||||
|
# Luet checks for DB update everytime its ran.
|
||||||
|
pass
|
||||||
|
|
||||||
|
def update_system(self):
|
||||||
|
check_target_env_call(["luet", "upgrade", "-y"])
|
||||||
|
|
||||||
|
|
||||||
class PMPackageKit(PackageManager):
|
class PMPackageKit(PackageManager):
|
||||||
backend = "packagekit"
|
backend = "packagekit"
|
||||||
|
Loading…
Reference in New Issue
Block a user