update hooks functions
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user