Rely on packages being built prior to installer running

This commit is contained in:
Jeremy Soller
2022-09-12 07:32:24 -06:00
parent 5e8e596d40
commit fa836008c0
-13
View File
@@ -111,19 +111,6 @@ fn install_packages<S: AsRef<str>>(config: &Config, dest: &str, cookbook: Option
repo.add_remote(REMOTE);
if let Some(cookbook) = cookbook {
let status = Command::new("./repo.sh")
.current_dir(cookbook.as_ref())
.args(config.packages.keys())
.spawn()
.unwrap()
.wait()
.unwrap();
if !status.success() {
write!(stderr(), "./repo.sh failed.").unwrap();
process::exit(1);
}
let dest_pkg = format!("{}/pkg", dest);
if ! Path::new(&dest_pkg).exists() {
fs::create_dir(&dest_pkg).unwrap();