mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 13:45:45 -05:00
chroot.try_install_packages(): Always refresh DBs (-Sy) on first try
This commit is contained in:
parent
8e8cd4eafa
commit
e3f49042ff
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ class Chroot:
|
||||||
if refresh:
|
if refresh:
|
||||||
results['refresh'] = self.run_cmd('pacman -Syy --noconfirm')
|
results['refresh'] = self.run_cmd('pacman -Syy --noconfirm')
|
||||||
cmd = 'pacman -S --noconfirm --needed'
|
cmd = 'pacman -S --noconfirm --needed'
|
||||||
result = self.run_cmd(f'{cmd} {" ".join(packages)}')
|
result = self.run_cmd(f'{cmd} -y {" ".join(packages)}')
|
||||||
results |= {package: result for package in packages}
|
results |= {package: result for package in packages}
|
||||||
if result.returncode != 0 and allow_fail:
|
if result.returncode != 0 and allow_fail:
|
||||||
results = {}
|
results = {}
|
||||||
|
|
Loading…
Add table
Reference in a new issue