mirror of
https://github.com/edu4rdshl/blackarch-devtools.git
synced 2026-07-17 23:24:47 +00:00
Add --noconfirm when testing a package
This commit is contained in:
parent
ac6a548ec8
commit
60a4d6048f
1 changed files with 8 additions and 1 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue