Skip to content

Commit

Permalink
Merge branch 'main' of github.com:FyraLabs/anda
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko committed Dec 1, 2024
2 parents 3f691af + 500799f commit 1ed1922
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Utility functions and types
use anda_config::{Docker, DockerImage, Manifest, Project, RpmBuild};
use clap_verbosity_flag::LevelFilter;
use clap_verbosity_flag::log::LevelFilter;
use color_eyre::{eyre::eyre, Result, Section};
use console::style;
use nix::{sys::signal, unistd::Pid};
Expand Down

0 comments on commit 1ed1922

Please sign in to comment.