diff options
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/src/config.rs b/src/config.rs index 8e303d4..e544b2d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -33,17 +33,10 @@ pub struct Config { pub git_bin: String, /// Path to the makepkg executable. pub makepkg_bin: String, - /// Path to makechrootpkg. - pub makechrootpkg_bin: String, - /// Path to mkarchroot. - pub mkarchroot_bin: String, - /// Package list handed to `mkarchroot` after the working directory, i.e. - /// what goes into the warm root. The default is the real devtools usage - /// (`mkarchroot <dir> base`); there is no `-N` flag on the real tool, so - /// hardcoding one would make the first real-chroot run fail on its first - /// step. Kept configurable because a site may want a smaller seed. - #[serde(default = "default_mkarchroot_args")] - pub mkarchroot_args: Vec<String>, + /// Path to pacman. The provisioning step installs the pinned lease set + /// with `pacman -U` inside the sandbox (§8); nothing resolves against a + /// live mirror at build time. + pub pacman_bin: String, /// Path to repo-add. pub repo_add_bin: String, /// Path to gpg. @@ -96,7 +89,7 @@ pub struct TestHooks { /// Abort publish at a named point so I4 (atomic publish) can be exercised /// for real: `before-rename` or `after-rename`. pub publish_fault: Option<String>, - /// The named shim must fail, e.g. `makechrootpkg`. + /// The named shim must fail, e.g. `makepkg`. pub shim_fail: Option<String>, /// The named shim SIGKILLs its parent — the process running the pipeline — /// mid-step. This is how a real crash is reproduced for I5: not a caught @@ -134,9 +127,7 @@ impl Default for Config { build_profile: "extra-x86_64".into(), git_bin: "git".into(), makepkg_bin: "makepkg".into(), - makechrootpkg_bin: "makechrootpkg".into(), - mkarchroot_bin: "mkarchroot".into(), - mkarchroot_args: default_mkarchroot_args(), + pacman_bin: "pacman".into(), repo_add_bin: "repo-add".into(), gpg_bin: "gpg".into(), build_user: String::new(), @@ -228,7 +219,6 @@ impl Config { self.store_dir(), self.log_dir(), self.repo_dir(), - self.chroot_dir(), ] { std::fs::create_dir_all(d)?; } @@ -295,20 +285,9 @@ impl Config { pub fn repo_db_name(&self) -> String { format!("{}.db", self.repo_name) } - /// Warm chroot seeds, one per profile (§8.3). - pub fn chroot_dir(&self) -> PathBuf { - self.root.join("chroot") - } - pub fn chroot_seed(&self, profile: &str) -> PathBuf { - self.chroot_dir().join(profile) - } } /// Filesystem-safe slug for a URL, used in cache filenames. -fn default_mkarchroot_args() -> Vec<String> { - vec!["base".to_string()] -} - pub fn slug(url: &str) -> String { url.chars() .map(|c| { |
