From 60a4d6048fd2d54f875829a248c71f1cc8f4835a Mon Sep 17 00:00:00 2001 From: Eduard Toloza Date: Wed, 15 May 2019 00:18:03 -0500 Subject: [PATCH] Add --noconfirm when testing a package --- src/functions.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/functions.rs b/src/functions.rs index 7c2f1bf..8355f6d 100644 --- a/src/functions.rs +++ b/src/functions.rs @@ -340,7 +340,14 @@ pub fn test_package(package: &str, executable: &str) { let chroot_blackarch = get_vars("chroot_blackarch"); let devtools_nspawn = get_vars("nspawn"); let install_package = Command::new("sudo") - .args(&[&pacman, "--root", &chroot_blackarch, "-U", &package]) + .args(&[ + &pacman, + "--root", + &chroot_blackarch, + "-U", + "--noconfirm", + &package, + ]) .status() .expect("Failed to install the package in the chroot environment."); if install_package.success() {