Add --noconfirm when testing a package

This commit is contained in:
Eduard Tolosa 2019-05-15 00:18:03 -05:00
parent ac6a548ec8
commit 60a4d6048f

View file

@ -340,7 +340,14 @@ pub fn test_package(package: &str, executable: &str) {
let chroot_blackarch = get_vars("chroot_blackarch"); let chroot_blackarch = get_vars("chroot_blackarch");
let devtools_nspawn = get_vars("nspawn"); let devtools_nspawn = get_vars("nspawn");
let install_package = Command::new("sudo") let install_package = Command::new("sudo")
.args(&[&pacman, "--root", &chroot_blackarch, "-U", &package]) .args(&[
&pacman,
"--root",
&chroot_blackarch,
"-U",
"--noconfirm",
&package,
])
.status() .status()
.expect("Failed to install the package in the chroot environment."); .expect("Failed to install the package in the chroot environment.");
if install_package.success() { if install_package.success() {