From 25f7a25c96ca98ababe239a4efa56abc861774a6 Mon Sep 17 00:00:00 2001 From: ripytide Date: Sun, 20 Oct 2024 10:28:51 +0100 Subject: [PATCH] fix packages not being installed explicitly --- src/backends/arch.rs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/backends/arch.rs b/src/backends/arch.rs index 736c6af..329ae1a 100644 --- a/src/backends/arch.rs +++ b/src/backends/arch.rs @@ -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(), )?; }