patch pkg run

This commit is contained in:
2026-06-12 18:37:44 +03:00
parent 833f62c739
commit a3bcf16eaa
5 changed files with 6 additions and 28 deletions

View File

@ -4,7 +4,7 @@ use crate::utils::shell::{run_install_script,run_install_script_hook};
pub fn config(repo: &String, pkgname: &String) {
let src_dir = &crate::commands::get_aeropkg_base().join("src").join(pkgname);
let pkg_dir = &crate::commands::get_aeropkg_base().join(repo).join(pkgname);
let pkg_md_path = &crate::commands::get_aeropkg_var().join(format!("{}/{}.md", repo, pkgname));
let config_script = match parser::get_config_script(pkg_md_path) {
@ -13,7 +13,7 @@ pub fn config(repo: &String, pkgname: &String) {
};
let full_env = get_install_env(repo, pkgname, pkg_md_path, "config");
run_install_script(&config_script, src_dir, &full_env);
run_install_script(&config_script, pkg_dir, &full_env);
run_install_script_hook(repo, "config", &full_env);
link(repo, pkgname)