pkg download upd

This commit is contained in:
2026-09-10 17:33:37 +03:00
parent 60cf4a2523
commit ebe134aa90
3 changed files with 7 additions and 2 deletions

View File

@ -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"));