update hooks functions

This commit is contained in:
2026-09-10 23:05:56 +03:00
parent 055ebb7703
commit cd3fbc52fd
9 changed files with 91 additions and 17 deletions

View File

@ -3,7 +3,7 @@ use std::path::Path;
use std::process::{Command, Stdio};
use crate::utils::parser::{self, env::get_install_env};
use crate::utils::shell::run_install_script_hook;
use crate::utils::shell;
pub fn download(repo: &String, pkgname: &String) {
let pkg_md_path = &crate::commands::get_aeropkg_var().join(format!("{}/{}.md", repo, pkgname));
@ -156,7 +156,8 @@ pub fn download(repo: &String, pkgname: &String) {
fs::write(src.join(".aeropkg.download-url"), &url).unwrap();
run_install_script_hook(repo, "download", &full_env)
shell::run_install_repo_stage_hook_script(repo, "download", &full_env);
shell::run_install_stage_hook_script("download", &full_env);
}
fn upload_from_repo(repo: &String, pkgname: &String, pkg_md_path: &Path) {