fix(review): apply skips remaining backends

Fixes #68.
This commit is contained in:
steven-omaha
2024-04-09 09:16:06 +02:00
parent 440ac78696
commit 53ca201891
+5 -2
View File
@@ -27,14 +27,17 @@ pub fn review(
return Ok(()); return Ok(());
} }
for (backend, packages) in todo_per_backend.into_iter() { 'outer: for (backend, packages) in todo_per_backend.into_iter() {
let mut actions = vec![]; let mut actions = vec![];
for package in packages { for package in packages {
println!("{}: {package}", backend.get_section()); println!("{}: {package}", backend.get_section());
match get_action_for_package(package, &groups, &mut actions, &*backend)? { match get_action_for_package(package, &groups, &mut actions, &*backend)? {
ContinueWithReview::Yes => continue, ContinueWithReview::Yes => continue,
ContinueWithReview::No => return Ok(()), ContinueWithReview::No => return Ok(()),
ContinueWithReview::NoAndApply => break, ContinueWithReview::NoAndApply => {
reviews.push((backend, actions));
break 'outer;
}
} }
} }
reviews.push((backend, actions)); reviews.push((backend, actions));