mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-01 03:15:37 -04:00
simplify install code
This commit is contained in:
parent
ddfd120197
commit
976150bc1e
1 changed files with 2 additions and 4 deletions
|
@ -322,10 +322,8 @@ class PMPamac(PackageManager):
|
||||||
check_target_env_call(["rm", lock])
|
check_target_env_call(["rm", lock])
|
||||||
|
|
||||||
def install(self, pkgs, from_local=False):
|
def install(self, pkgs, from_local=False):
|
||||||
self.check_db_lock()
|
self.check_db_lock()
|
||||||
pamac_flags = "install"
|
check_target_env_call([self.backend, "install", "--no-confirm"] + pkgs)
|
||||||
|
|
||||||
check_target_env_call([self.backend, pamac_flags, "--no-confirm"] + pkgs)
|
|
||||||
|
|
||||||
def remove(self, pkgs):
|
def remove(self, pkgs):
|
||||||
self.check_db_lock()
|
self.check_db_lock()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue