Skip to content

Commit

Permalink
fix(-A): if activated, pass --noconfirm down to -U during install
Browse files Browse the repository at this point in the history
Fixes #882
  • Loading branch information
fosskers committed Aug 7, 2024
1 parent e0d2137 commit 23a15da
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rust/aura-pm/src/command/aur.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,14 @@ fn install_work(
// needs to be confirmed, though.
//
// 2028-08-07 This happened to me yesterday.
let flags = (!done || (matches!(mode, Mode::Install) && env.aur.asdeps))
.then(|| ["--asdeps"].as_slice())
let mut flags = (!done || (matches!(mode, Mode::Install) && env.aur.asdeps))
.then(|| vec!["--asdeps"])
.unwrap_or_default();

if env.general.noconfirm {
flags.push("--noconfirm");
}

let tarballs = builts
.iter()
.flat_map(|b| b.tarballs.iter().map(|pp| pp.as_path()));
Expand Down

0 comments on commit 23a15da

Please sign in to comment.