From 976150bc1e86ce0f033771bbd52e945910aaa4a9 Mon Sep 17 00:00:00 2001 From: Vitor Lopes Date: Mon, 22 Jun 2020 00:12:02 +0100 Subject: [PATCH] simplify install code --- src/modules/packages/main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/packages/main.py b/src/modules/packages/main.py index f2fd135a4..b2000ab14 100644 --- a/src/modules/packages/main.py +++ b/src/modules/packages/main.py @@ -322,10 +322,8 @@ class PMPamac(PackageManager): check_target_env_call(["rm", lock]) 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) + self.check_db_lock() + check_target_env_call([self.backend, "install", "--no-confirm"] + pkgs) def remove(self, pkgs): self.check_db_lock()