Merge pull request #176 from codeworkx/master
packages: add --noconfirm arg for pacman, also remove unneeded deps
This commit is contained in:
commit
99dc06bd51
@ -39,7 +39,7 @@ class PackageManager:
|
||||
elif self.backend == "apt":
|
||||
check_chroot_call(["apt-get", "-q", "-y", "install"] + pkgs)
|
||||
elif self.backend == "pacman":
|
||||
check_chroot_call(["pacman", "-Sy"] + pkgs)
|
||||
check_chroot_call(["pacman", "-Sy", "--noconfirm"] + pkgs)
|
||||
|
||||
def remove(self, pkgs):
|
||||
if self.backend == "packagekit":
|
||||
@ -57,7 +57,7 @@ class PackageManager:
|
||||
check_chroot_call(["apt-get", "--purge", "-q", "-y", "remove"] + pkgs)
|
||||
check_chroot_call(["apt-get", "--purge", "-q", "-y", "autoremove"])
|
||||
elif self.backend == "pacman":
|
||||
check_chroot_call(["pacman", "-R"] + pkgs)
|
||||
check_chroot_call(["pacman", "-Rs", "--noconfirm"] + pkgs)
|
||||
|
||||
def run_operations(pkgman, entry):
|
||||
for key in entry.keys():
|
||||
|
Loading…
Reference in New Issue
Block a user