diff --git a/src/commands/download.rs b/src/commands/download.rs index 73bb33b..1b60ecd 100644 --- a/src/commands/download.rs +++ b/src/commands/download.rs @@ -7,6 +7,7 @@ use std::cell::RefCell; use super::get_aeropkg_base; use crate::utils::parser::{self, env::get_install_env, pkginfo, repoinfo}; use crate::commands::link::link; +use crate::commands::run::config::config; #[derive(Default)] struct DownloadSummary { @@ -126,6 +127,7 @@ pub fn download(repo: &String, pkgname: &String, force: bool, recursive: bool) { } } + config(repo, pkgname); let full_env = get_install_env(repo, pkgname, pkg_md_path, "build"); if full_env.get("disable").is_some() { let _ = fs::File::create(crate::commands::get_aeropkg_base().join(repo).join(pkgname).join("disabled")); diff --git a/src/commands/run/config.rs b/src/commands/run/config.rs index 4ac7118..ff4696d 100644 --- a/src/commands/run/config.rs +++ b/src/commands/run/config.rs @@ -16,5 +16,7 @@ pub fn config(repo: &String, pkgname: &String) { run_install_script(&config_script, pkg_dir, &full_env); run_install_script_hook(repo, "config", &full_env); - link(repo, pkgname) + if !crate::commands::get_aeropkg_base().join(repo).join(pkgname).join("disabled").exists() { + link(repo, pkgname) + } }