lanzatool: ignore malformed generations
This commit is contained in:
parent
287fb0978d
commit
0ad20b0d5a
|
@ -36,10 +36,18 @@ 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}");
|
||||
|
||||
self.install_generation(&generation)
|
||||
|
|
Loading…
Reference in New Issue