summaryrefslogtreecommitdiffstats
path: root/src/pipeline/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipeline/mod.rs')
-rw-r--r--src/pipeline/mod.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/pipeline/mod.rs b/src/pipeline/mod.rs
index 0bd8f92..e7ee34e 100644
--- a/src/pipeline/mod.rs
+++ b/src/pipeline/mod.rs
@@ -14,7 +14,7 @@ use crate::error::{Error, Result};
use crate::sandbox::{Sandbox, SandboxBackend};
#[derive(Debug, Clone)]
-pub struct SourceIdentity {
+pub(crate) struct SourceIdentity {
pub aur_commit: String,
pub recipe_hash: String,
pub upstream_pins_json: String,
@@ -25,7 +25,7 @@ pub struct SourceIdentity {
}
impl SourceIdentity {
- pub fn from_candidate(c: &CandidateRow, snapshot: &SnapshotRow) -> Self {
+ pub(crate) 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 fn from_release(r: &ReleaseRow) -> Self {
+ pub(crate) 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 struct CollectedPkg {
+pub(crate) struct CollectedPkg {
pub name: String,
pub version: String,
pub arch: String,
@@ -69,7 +69,7 @@ pub struct CollectedPkg {
}
#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
-pub struct Collect {
+pub(crate) struct Collect {
pub packages: Vec<CollectedPkg>,
}
@@ -91,7 +91,7 @@ pub struct Ctx {
pub db: Db,
pub build: builds::BuildRow,
pub pb: Pkgbase,
- pub src: SourceIdentity,
+ pub(crate) src: SourceIdentity,
pub staging: PathBuf,
pub srcdir: PathBuf,
pub collect_path: PathBuf,
@@ -155,7 +155,7 @@ impl Ctx {
self.backend.acquire(&spec)
}
- pub fn log_line(&self, line: &str) {
+ pub(crate) fn log_line(&self, line: &str) {
use std::io::Write;
if let Some(parent) = self.log.parent() {
let _ = std::fs::create_dir_all(parent);
@@ -286,7 +286,7 @@ pub fn enqueue_manual_rebuild(cfg: &Config, db: &Db, pkgbase: &str) -> Result<St
Ok(id)
}
-pub enum StepResult {
+pub(crate) enum StepResult {
Done(Option<String>),
Skipped(String),
Blocked(Vec<String>),