diff options
Diffstat (limited to 'src/watch/upstream.rs')
| -rw-r--r-- | src/watch/upstream.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/watch/upstream.rs b/src/watch/upstream.rs index 0845440..7987178 100644 --- a/src/watch/upstream.rs +++ b/src/watch/upstream.rs @@ -10,6 +10,7 @@ use crate::error::{Error, Result, TransientCause}; use crate::git; #[derive(Debug, Clone)] +// StageA stays `pub`: what `upstream::probe` returns; tests/ops.rs and tests/vcs.rs call `probe` directly. pub struct StageA { pub pins: Vec<UpstreamPin>, pub unprobed: Vec<String>, @@ -106,26 +107,20 @@ fn probe_impl(recipe: &Recipe, accepted: &[UpstreamPin]) -> Result<StageA> { } #[derive(Debug, Clone)] -pub struct StageB { +pub(crate) struct StageB { pub epoch: String, pub pkgver: String, pub pkgrel: String, pub pins: Vec<UpstreamPin>, - pub cached: bool, } impl StageB { - pub fn version(&self) -> String { - crate::pkgver::full_version(&self.epoch, &self.pkgver, &self.pkgrel) - } - fn from_cache(row: StageBCacheRow) -> Self { StageB { epoch: row.epoch, pkgver: row.pkgver, pkgrel: row.pkgrel, pins: row.pins, - cached: true, } } @@ -274,7 +269,6 @@ fn run( pkgver, pkgrel, pins, - cached: false, }) } |
