From e3f49042fff2ca3301a42dc55e0870e141b28687 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Fri, 17 Dec 2021 03:23:14 +0100 Subject: [PATCH] chroot.try_install_packages(): Always refresh DBs (-Sy) on first try --- chroot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chroot.py b/chroot.py index d018f6a..6001394 100644 --- a/chroot.py +++ b/chroot.py @@ -398,7 +398,7 @@ class Chroot: if refresh: results['refresh'] = self.run_cmd('pacman -Syy --noconfirm') 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} if result.returncode != 0 and allow_fail: results = {}