Skip to content

Commit e5a077f

Browse files
committed
fix: include per-package provides in metadata generation
The generate command was missing the get_package_provides() lookup that inspect already had, so multi-package recipes (using the packages field) would not include provides in generated metadata.
1 parent c411e3b commit e5a077f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sbuild/src/commands/meta.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ async fn cmd_generate(
230230
pkg_metadata.ghcr_url = Some(ghcr_info.ghcr_url());
231231
pkg_metadata.pkg_webpage = Some(ghcr_info.pkg_webpage(&arch));
232232

233+
if let Some(pkg_provides) = recipe.get_package_provides(&ghcr_info.pkg_name) {
234+
pkg_metadata.provides = Some(pkg_provides.to_vec());
235+
}
236+
233237
let recipe_path_str = path.to_string_lossy();
234238
pkg_metadata.build_script = Some(format!(
235239
"https://github.com/pkgforge/soarpkgs/blob/main/{}",

0 commit comments

Comments
 (0)