chroot.py: try_install_packages(): pacman -S '--overwrite=/*'

This commit is contained in:
InsanePrawn 2022-01-26 17:50:26 +01:00
parent a0a5a5a677
commit fd46977a2f

View file

@ -405,7 +405,7 @@ class Chroot:
results = {}
if refresh:
results['refresh'] = self.run_cmd('pacman -Syy --noconfirm')
cmd = 'pacman -S --noconfirm --needed'
cmd = "pacman -S --noconfirm --needed --overwrite='/*'"
result = self.run_cmd(f'{cmd} -y {" ".join(packages)}')
results |= {package: result for package in packages}
if result.returncode != 0 and allow_fail: