Skip to content

Commit

Permalink
feat(anda-config): add extra_repos in rpm {}
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko committed Dec 1, 2024
1 parent d6ad9e9 commit cecd533
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions anda-config/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ pub struct RpmBuild {
pub pre_script: Option<PathBuf>,
pub post_script: Option<PathBuf>,
pub enable_scm: Option<bool>,
#[serde(default)]
pub extra_repos: Vec<String>,
pub scm_opts: Option<BTreeMap<String, String>>,
pub config: Option<BTreeMap<String, String>>,
pub mock_config: Option<String>,
Expand Down
1 change: 1 addition & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ pub async fn build_project(
}

if let Some(rpmbuild) = &proj.rpm {
rpm_opts.extra_repos = Some(rpmbuild.extra_repos.clone());
if let Some(srcdir) = &rpmbuild.sources {
rpm_opts.sources.clone_from(srcdir);
}
Expand Down

0 comments on commit cecd533

Please sign in to comment.