Create pkgar_head files when installing

This commit is contained in:
Jeremy Soller
2022-03-23 13:53:10 -06:00
parent 900f77e7f2
commit e666636ab7
+3
View File
@@ -126,6 +126,9 @@ fn install_packages<S: AsRef<str>>(config: &Config, dest: &str, cookbook: Option
env::current_dir().unwrap().to_string_lossy(),
cookbook.as_ref());
pkgar::extract(&public_path, &pkgar_path, dest).unwrap();
let head_path = format!("{}/pkg/{}.pkgar_head", dest, packagename);
pkgar::split(&public_path, &pkgar_path, &head_path, Option::<&str>::None).unwrap();
} else {
let path = format!("{}/{}/repo/{}/{}.tar.gz",
env::current_dir().unwrap().to_string_lossy(),