feat: merge missing dependencies into a single function and update dependency checks

This commit is contained in:
2026-02-28 19:22:35 -06:00
parent c96a17c553
commit 238f64eef7
2 changed files with 35 additions and 15 deletions
+2 -2
View File
@@ -1147,12 +1147,12 @@ mod tests {
std::fs::create_dir_all(&scripts).unwrap();
std::fs::write(
scripts.join("post_install"),
scripts.join("pre_install"),
"echo ok > \"$DEPOT_ROOTFS/hook.out\"\n",
)
.unwrap();
let ran = run_hook_if_present(&scripts, Hook::PostInstall, &rootfs_rel, "foo").unwrap();
let ran = run_hook_if_present(&scripts, Hook::PreInstall, &rootfs_rel, "foo").unwrap();
assert!(ran);
assert_eq!(
std::fs::read_to_string(rootfs_abs.join("hook.out")).unwrap(),