lanzatool: ignore malformed generations

This commit is contained in:
Raito Bezarius 2022-12-26 02:36:24 +01:00
parent 287fb0978d
commit 0ad20b0d5a
1 changed files with 10 additions and 2 deletions

View File

@ -36,9 +36,17 @@ impl Installer {
pub fn install(&self) -> Result<()> {
for toplevel in &self.generations {
let generation = Generation::from_toplevel(toplevel).with_context(|| {
let generation_result = Generation::from_toplevel(toplevel).with_context(|| {
format!("Failed to build generation from toplevel: {toplevel:?}")
})?;
});
let generation = match generation_result {
Ok(generation) => generation,
Err(e) => {
println!("Malformed generation: {:?}", e);
continue;
}
};
println!("Installing generation {generation}");