From 2cb1ffbe1867cf82cd251b2ec44458b00a2f75cc Mon Sep 17 00:00:00 2001 From: steven-omaha <35634100+steven-omaha@users.noreply.github.com> Date: Mon, 30 Jan 2023 14:36:00 +0100 Subject: [PATCH] fix bug when nothing to install for a specific backend --- src/backend/todo_per_backend.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/todo_per_backend.rs b/src/backend/todo_per_backend.rs index c2e26d7..2495045 100644 --- a/src/backend/todo_per_backend.rs +++ b/src/backend/todo_per_backend.rs @@ -46,6 +46,9 @@ impl ToDoPerBackend { F: Fn(&'a dyn Backend, &'a [Package]) -> Result, { for (backend, packages) in &self.0 { + if packages.is_empty() { + continue; + } let exit_status = func(&**backend, packages).with_context(|| { format!("{verb_continuous} packages for {}", backend.get_binary()) })?;