simplify install code

This commit is contained in:
Vitor Lopes 2020-06-22 00:12:02 +01:00 committed by GitHub
parent ddfd120197
commit 976150bc1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,9 +323,7 @@ class PMPamac(PackageManager):
def install(self, pkgs, from_local=False):
self.check_db_lock()
pamac_flags = "install"
check_target_env_call([self.backend, pamac_flags, "--no-confirm"] + pkgs)
check_target_env_call([self.backend, "install", "--no-confirm"] + pkgs)
def remove(self, pkgs):
self.check_db_lock()