Обновление README.md, исходников, пакетки

This commit is contained in:
2026-03-27 13:13:52 +03:00
parent 30540602bd
commit 833f62c739
240 changed files with 2747 additions and 855 deletions

View File

@ -3,23 +3,18 @@ use crate::utils::parser::{self, env::get_install_env};
use crate::utils::shell::{run_install_script,run_install_script_hook};
pub fn config(
repo: &String,
pkgname: &String
) -> Result<(), bool> {
let src_dir = &crate::commands::get_aeropkg_base().join("src").join(&pkgname);
let pkg_md_path = &crate::commands::get_var_path().join(format!("{}/{}.md", &repo, &pkgname));
pub fn config(repo: &String, pkgname: &String) {
let src_dir = &crate::commands::get_aeropkg_base().join("src").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) {
Ok(script) => script,
Err(_) => { return Ok(()) }
Err(_) => { return }
};
let full_env = get_install_env(repo, pkgname, pkg_md_path, "config");
run_install_script(&config_script, src_dir, &full_env)?;
run_install_script_hook(repo, "config", &full_env)?;
run_install_script(&config_script, src_dir, &full_env);
run_install_script_hook(repo, "config", &full_env);
link(&repo, &pkgname).expect("Failed link package");
Ok(())
link(repo, pkgname)
}