summaryrefslogtreecommitdiffstats
path: root/src/watch/mirror.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch/mirror.rs')
-rw-r--r--src/watch/mirror.rs14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/watch/mirror.rs b/src/watch/mirror.rs
index 989b968..b6f9c47 100644
--- a/src/watch/mirror.rs
+++ b/src/watch/mirror.rs
@@ -1,10 +1,3 @@
-//! The local AUR git mirror (§5.1).
-//!
-//! Clone, don't scrape. The mirror is load-bearing rather than a cache: every
-//! build materializes its recipe from it at the pinned commit and never asks
-//! the network for a recipe (§5.1a), so losing it would mean losing the ability
-//! to reproduce any historical release.
-
use std::collections::BTreeMap;
use std::path::Path;
@@ -64,11 +57,10 @@ fn record(db: &Db, name: &str, head: &str, mirror: &Path) -> Result<()> {
#[derive(Debug, Clone)]
pub struct Tree {
/// `(path, git blob id)` for every file in the tree — the input to
- /// `recipe_hash`. Covers PKGBUILD, .SRCINFO, *.install and shipped patches
- /// (§3): a patch file is part of the recipe.
+ /// `recipe_hash`, which covers shipped patches too (§3).
pub blobs: Vec<(String, String)>,
- /// Text bodies, keyed by path. Binary files are omitted from this map but
- /// still counted in `blobs`.
+ /// Text bodies, keyed by path. Binary files are omitted here but still
+ /// counted in `blobs`.
pub files: BTreeMap<String, String>,
}