Skip to content

Commit

Permalink
fix packages not being installed explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide committed Oct 20, 2024
1 parent 0765d08 commit 25f7a25
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/backends/arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,19 @@ impl Backend for Arch {
) -> Result<()> {
if !packages.is_empty() {
run_command(
[config.arch_package_manager.as_command(), "--sync"]
.into_iter()
.chain(Some("--no_confirm").filter(|_| no_confirm))
.chain(packages.keys().map(String::as_str))
.chain(packages.values().flat_map(|dependencies| {
[
config.arch_package_manager.as_command(),
"--sync",
"--asexplicit",
]
.into_iter()
.chain(Some("--no_confirm").filter(|_| no_confirm))
.chain(packages.keys().map(String::as_str))
.chain(
packages.values().flat_map(|dependencies| {
dependencies.optional_deps.iter().map(String::as_str)
})),
}),
),
config.arch_package_manager.change_perms(),
)?;
}
Expand Down

0 comments on commit 25f7a25

Please sign in to comment.