From 2369e371bea331277fcc195973d9c8af906f1b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sch=C3=B6nauer?= <37108907+DottoDev@users.noreply.github.com> Date: Sat, 18 Feb 2023 21:22:02 +0000 Subject: [PATCH] apt: Recognise mist (#351) --- src/steps/os/linux.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index c1de3362..50946cca 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -361,6 +361,13 @@ fn upgrade_gentoo(ctx: &ExecutionContext) -> Result<()> { fn upgrade_debian(ctx: &ExecutionContext) -> Result<()> { if let Some(sudo) = &ctx.sudo() { let apt = which("apt-fast") + .or_else(|| { + if which("mist").is_some() { + Some(PathBuf::from("mist")) + } else { + None + } + }) .or_else(|| { if Path::new("/usr/bin/nala").exists() { Some(Path::new("/usr/bin/nala").to_path_buf())