mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
Merge pull request #176 from codeworkx/master
packages: add --noconfirm arg for pacman, also remove unneeded deps
This commit is contained in:
commit
99dc06bd51
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue