diff options
author | Galen Guyer <galen@galenguyer.com> | 2023-01-14 01:59:29 -0500 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2023-01-14 01:59:29 -0500 |
commit | bfa632277bbadab22d2d45f7c4ec301b9a34a4c4 (patch) | |
tree | 64038d3c6edd828765aca374ac191a74129663d1 | |
parent | f2522ad354792715d99b8345bbd84ec0d8266ecf (diff) |
mount our repo the right way
-rw-r--r-- | src/bin/build-pkg.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/build-pkg.rs b/src/bin/build-pkg.rs index 2f57777..0a05aea 100644 --- a/src/bin/build-pkg.rs +++ b/src/bin/build-pkg.rs @@ -106,7 +106,12 @@ fn build_pkg(package_name: &str, package_list: &[PackageMeta], handle: &Alpm) { std::env::current_dir().unwrap().display() )) .arg("-D") - .arg("/tmp/repo:/mnt/pkgbuild") + .arg(format!( + "{}:/mnt/pkgbuild", + std::env::var("PKGBUILD_REPO_ROOT") + .expect("PKGBUILD_REPO_ROOT not set") + .trim_end_matches('/') + )) .arg("-d") .arg("/var/cache/pacman/pkg/") .arg("--") |