From e666636ab77bfb7a33a9245f9efcb7928d629375 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 23 Mar 2022 13:53:10 -0600 Subject: [PATCH] Create pkgar_head files when installing --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 02be1a3e0d..242b23e67b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,6 +126,9 @@ fn install_packages>(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(),