Skip to content

Commit 0207c9f

Browse files
component: Skip installing components without update metadata
Now that update metadata generation is optional for some components, skip installing the components that don't have an update metadata.
1 parent 365ef1f commit 0207c9f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/bootupd.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@ pub(crate) fn install(
9393
continue;
9494
}
9595

96+
// skip components that don't have an update metadata
97+
if let Ok(None) = component.query_update(&source_root_dir) {
98+
println!(
99+
"Skip installing component {} without update metadata",
100+
component.name()
101+
);
102+
continue;
103+
}
104+
96105
let meta = component
97106
.install(&source_root, dest_root, device, update_firmware)
98107
.with_context(|| format!("installing component {}", component.name()))?;

0 commit comments

Comments
 (0)