Skip to content

Commit

Permalink
Pass as many -y's as specified in early refresh
Browse files Browse the repository at this point in the history
Fixes #160
  • Loading branch information
Morganamilo committed Jan 12, 2021
1 parent 1e07760 commit dcdf6f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ use srcinfo::Srcinfo;

fn early_refresh(config: &Config) -> Result<()> {
let mut args = config.pacman_globals();
args.arg("y");
for _ in 0..config.args.count("y", "refresh") {
args.arg("y");
}
args.targets.clear();
exec::pacman(config, &args)?.success()?;
Ok(())
Expand Down

0 comments on commit dcdf6f1

Please sign in to comment.