diff options
Diffstat (limited to 'src/pipeline')
| -rw-r--r-- | src/pipeline/dispatch.rs | 6 | ||||
| -rw-r--r-- | src/pipeline/mod.rs | 14 | ||||
| -rw-r--r-- | src/pipeline/publish.rs | 2 | ||||
| -rw-r--r-- | src/pipeline/steps.rs | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/src/pipeline/dispatch.rs b/src/pipeline/dispatch.rs index 35fe646..8e35f0a 100644 --- a/src/pipeline/dispatch.rs +++ b/src/pipeline/dispatch.rs @@ -89,7 +89,7 @@ pub fn dispatch_once(cfg: &Config, db: &Db, tx: &Sender<String>) -> Vec<String> } #[cfg(not(feature = "test-support"))] -pub(crate) fn dispatch_once(cfg: &Config, db: &Db, tx: &Sender<String>) -> Vec<String> { +fn dispatch_once(cfg: &Config, db: &Db, tx: &Sender<String>) -> Vec<String> { dispatch_once_impl(cfg, db, tx) } @@ -132,7 +132,7 @@ pub fn admissible(cfg: &Config, db: &Db) -> usize { } #[cfg(not(feature = "test-support"))] -pub(crate) fn admissible(cfg: &Config, db: &Db) -> usize { +fn admissible(cfg: &Config, db: &Db) -> usize { admissible_impl(cfg, db) } @@ -159,7 +159,7 @@ pub fn free_disk_mb(path: &std::path::Path) -> u64 { } #[cfg(not(feature = "test-support"))] -pub(crate) fn free_disk_mb(path: &std::path::Path) -> u64 { +fn free_disk_mb(path: &std::path::Path) -> u64 { free_disk_mb_impl(path) } diff --git a/src/pipeline/mod.rs b/src/pipeline/mod.rs index e571d71..3e63a69 100644 --- a/src/pipeline/mod.rs +++ b/src/pipeline/mod.rs @@ -25,7 +25,7 @@ pub(crate) struct SourceIdentity { } impl SourceIdentity { - pub(crate) fn from_candidate(c: &CandidateRow, snapshot: &SnapshotRow) -> Self { + fn from_candidate(c: &CandidateRow, snapshot: &SnapshotRow) -> Self { Self { aur_commit: snapshot.aur_commit.clone(), recipe_hash: snapshot.recipe_hash.clone(), @@ -36,7 +36,7 @@ impl SourceIdentity { pkgrel: c.pkgrel.clone(), } } - pub(crate) fn from_release(r: &ReleaseRow) -> Self { + fn from_release(r: &ReleaseRow) -> Self { Self { aur_commit: r.aur_commit.clone(), recipe_hash: r.recipe_hash.clone(), @@ -53,7 +53,7 @@ impl SourceIdentity { } #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] -pub(crate) struct CollectedPkg { +struct CollectedPkg { pub name: String, pub version: String, pub arch: String, @@ -69,7 +69,7 @@ pub(crate) struct CollectedPkg { } #[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)] -pub(crate) struct Collect { +struct Collect { pub packages: Vec<CollectedPkg>, } @@ -154,7 +154,7 @@ impl Ctx { self.backend.acquire(&spec) } - pub(crate) fn log_line(&self, line: &str) { + fn log_line(&self, line: &str) { use std::io::Write; if let Some(parent) = self.log.parent() { let _ = std::fs::create_dir_all(parent); @@ -195,7 +195,7 @@ pub fn run_with(ctx: &Ctx) -> Result<Outcome> { } #[cfg(not(feature = "test-support"))] -pub(crate) fn run_with(ctx: &Ctx) -> Result<Outcome> { +fn run_with(ctx: &Ctx) -> Result<Outcome> { run_with_impl(ctx) } @@ -299,7 +299,7 @@ pub fn enqueue_manual_rebuild(cfg: &Config, db: &Db, pkgbase: &str) -> Result<St Ok(id) } -pub(crate) enum StepResult { +enum StepResult { Done(Option<String>), Skipped(String), Blocked(Vec<String>), diff --git a/src/pipeline/publish.rs b/src/pipeline/publish.rs index 332e673..d22b833 100644 --- a/src/pipeline/publish.rs +++ b/src/pipeline/publish.rs @@ -232,7 +232,7 @@ fn commit_release(ctx: &Ctx, collect: &Collect) -> Result<i64> { }) } -pub(crate) fn sweep_render_dirs(arch_dir: &Path) { +fn sweep_render_dirs(arch_dir: &Path) { let Ok(entries) = std::fs::read_dir(arch_dir) else { return; }; diff --git a/src/pipeline/steps.rs b/src/pipeline/steps.rs index ebb50c5..775485d 100644 --- a/src/pipeline/steps.rs +++ b/src/pipeline/steps.rs @@ -454,7 +454,7 @@ fn publish(ctx: &Ctx) -> Result<StepResult> { use std::path::PathBuf; -pub(crate) fn recipe_at(dir: &Path) -> Result<Recipe> { +fn recipe_at(dir: &Path) -> Result<Recipe> { let mut files = std::collections::BTreeMap::new(); for entry in walkdir::WalkDir::new(dir).max_depth(2).into_iter().filter_map(|e| e.ok()) { let p = entry.path(); |
